- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for isStale (0.3 sec)
-
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
} @Test @DisplayName("Should throw IOException when handle is stale") void testDoSendReceiveFragment_StaleHandle() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); when(mockSmbPipeHandleInternal.isStale()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that isStale returns false for a fresh handle. */ @Test public void testIsStale_ReturnsFalseWhenNotStale() { when(smbPipeHandle.isStale()).thenReturn(false); assertFalse(smbPipeHandle.isStale(), "isStale() should return false for a fresh handle."); } /** * Verifies that isStale returns true for a stale handle. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
// Initially not open (isStale returns false when handle is null, not true) assertFalse(target.isOpen()); assertFalse(target.isStale()); // After ensureOpen, handle valid -> open SmbFileHandleImpl fh = target.ensureOpen(); assertSame(fileHandle, fh); assertTrue(target.isOpen()); assertFalse(target.isStale());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
} @Test @DisplayName("isOpen/isStale reflect handle validity and lifecycle") void isOpen_isStale_transitions() throws Exception { SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\w"); assertFalse(handle.isOpen(), "Initially not open"); assertFalse(handle.isStale(), "Initially not stale"); // After ensureOpen with valid fh
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
*/ @Override protected int doSendReceiveFragment(final byte[] buf, final int off, final int length, final byte[] inB) throws IOException { if (this.handle.isStale()) { throw new IOException("DCERPC pipe is no longer open"); } int have = this.handle.sendrecv(buf, off, length, inB, getMaxRecv());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return sess.getSessionKey(); } } /** * {@inheritDoc} * * @see jcifs.SmbPipeHandle#isStale() */ @Override public boolean isStale() { return !this.open || this.handle != null && !this.handle.isValid(); } @Override public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java
return managedVersions; } public List<ArtifactRepository> getRemoteRepositories() { return remoteRepositories; } public boolean isStale() { File pomFile = pomArtifact.getFile(); if (pomFile != null) { if (pomFile.canRead()) { return length != pomFile.length() || timestamp != pomFile.lastModified();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 11.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbPipeHandle.java
boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale(); /** * Unwraps this handle to the specified type. * * @param <T> the type to unwrap to * @param type the class of the type to unwrap to * @return unwrapped instance */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
.github/workflows/stale.yml
# specific language governing permissions and limitations # under the License. name: Stale on: schedule: - cron: '29 3 * * *' issue_comment: types: [ 'created' ] jobs: stale:
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Feb 15 15:39:54 UTC 2025 - 976 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt
val headers = Headers .Builder() .add( "WWW-Authenticate", "Digest realm=\"myrealm\", nonce=\"fjalskdflwejrlaskdfjlaskdjflaks" + "jdflkasdf\", qop=\"auth\", stale=\"FALSE\"", ).build() val challenges = headers.parseChallenges("WWW-Authenticate") assertThat(challenges.size).isEqualTo(1) assertThat(challenges[0].scheme).isEqualTo("Digest")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 16.8K bytes - Viewed (0)