- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,105 for close (0.02 sec)
-
android/guava/src/com/google/common/io/AppendableWriter.java
checkNotClosed(); if (target instanceof Flushable) { ((Flushable) target).flush(); } } @Override public void close() throws IOException { this.closed = true; if (target instanceof Closeable) { ((Closeable) target).close(); } } @Override public Writer append(char c) throws IOException { checkNotClosed(); target.append(c); return this;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:37:28 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
return invocation.getArgument(1); }); // When: Create iterator and close multiple times NetServerEnumIterator iterator = new NetServerEnumIterator(parent, treeHandle, "*", 0, null); iterator.close(); iterator.close(); // Second close should be safe // Then: Tree handle should be released only once verify(treeHandle, times(1)).release();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt
} } @Test fun closeReservedSetThrows() { data.write("880203ec".decodeHex()) // Close with code 1004 data.write("880203ed".decodeHex()) // Close with code 1005 data.write("880203ee".decodeHex()) // Close with code 1006 for (i in 1015..2999) { data.write(("8802" + format("%04X", i)).decodeHex()) // Close with code 'i' } var count = 0 while (!data.exhausted()) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/main/java/jcifs/internal/smb1/com/SmbComFindClose2.java
import jcifs.internal.util.SMBUtil; /** * SMB1 Find Close2 request message. * * This command is used to close a search handle that was * opened by a Trans2 Find First2 request. */ public class SmbComFindClose2 extends ServerMessageBlock { private final int sid; /** * Creates a new SMB1 find close request to close a search handle. * * @param config the CIFS configurationRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, SmbConstants.FILE_WRITE_DATA, SmbConstants.DEFAULT_SHARING); // Close the stream outputStream.close(); // When & Then - after close, tmp is null so write(int) will throw NullPointerException // This is the actual behavior of the implementationRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@DisplayName("close() closes handle; does not close file when not unshared") void closeClosesHandle() throws Exception { SmbFileInputStream in = newStream(); in.close(); verify(mockHandle, times(1)).close(); verify(mockFile, never()).close(); } @Test @DisplayName("seToIoe maps Interrupted cause to InterruptedIOException")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class)); // Close once handle.close(); // Act // Try to close again handle.close(); // Assert // Verify sendrecv was called once for open and only once for close verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
void testClose_True() throws CIFSException { // Test close() method when true when(mockDelegate.close()).thenReturn(true); assertTrue(cifsContextWrapper.close()); verify(mockDelegate).close(); } @Test void testClose_False() throws CIFSException { // Test close() method when false when(mockDelegate.close()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/util/ResourceManagerTest.java
private final AtomicBoolean closed = new AtomicBoolean(false); private final String name; TestResource(String name) { this.name = name; } @Override public void close() { closed.set(true); } boolean isClosed() { return closed.get(); } String getName() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.9K bytes - Viewed (0)