Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 863 for _clone (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        // Confirm all sent messages were received, followed by a client-initiated close.
        val server = serverListener.assertOpen()
        for (i in 0 until messageCount) {
          serverListener.assertBinaryMessage(message)
        }
        serverListener.assertClosing(1001, "")
    
        // When the server acknowledges the close the connection shuts down gracefully.
        server.close(1000, null)
        clientListener.assertClosing(1000, "")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbSessionTest.java

                    mockSession.close();
                }, "Multiple close() calls should not throw exceptions");
    
                verify(mockSession, times(2)).close();
            }
    
            @Test
            @DisplayName("Should handle close with exception gracefully")
            void shouldHandleCloseExceptionGracefully() throws Exception {
                SmbSession mockSession = mock(SmbSession.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbTreeTest.java

         */
        @Test
        void testClose_multipleTimes() {
            doNothing().when(smbTree).close();
    
            smbTree.close();
            smbTree.close();
            smbTree.close();
    
            verify(smbTree, times(3)).close();
        }
    
        /**
         * Test for close() method throwing exception.
         * Verifies behavior when close throws an exception.
         */
        @Test
        void testClose_throwsException() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharStreams.java

       * CharStreams} method returns a singleton writer whose {@code close} method has no effect, while
       * the {@link Writer#nullWriter()} method returns a new instance whose methods throw after the
       * instance is {@link Writer#close() closed}.
       *
       * @since 15.0
       */
      public static Writer nullWriter() {
        return NullWriter.INSTANCE;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

              val source = Buffer().writeUtf8("hello")
              return object : ForwardingSource(source) {
                override fun close() {
                  closed = true
                  super.close()
                }
              }.buffer()
            }
          }
        body.source().close()
        assertThat(closed).isTrue()
      }
    
      @Test
      fun throwingUnderlyingSourceClosesQuietly() {
        val body: ResponseBody =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            // Simulate successful close
            doAnswer(invocation -> {
                MsrpcSamrCloseHandle rpc = invocation.getArgument(0);
                rpc.retval = 0;
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrCloseHandle.class));
    
            // First close call
            handle.close();
    
            // Act
            // Second close call
            handle.close();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            assertEquals("working", result);
    
            // Close it
            cbToClose.close();
    
            // Should not throw exception (close should be idempotent)
            cbToClose.close();
        }
    
        @Test
        public void testEnhancedMetricsTracking() throws Exception {
            SmbCircuitBreaker cbWithEnhanced = new SmbCircuitBreaker("enhanced-test");
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  8. README.md

    - `org.codelibs.curl.io.ContentCache` and `ContentOutputStream`: internal utilities for streaming and caching.
    
    Refer to the Javadoc for full API details.
    
    ## Building and Testing
    
    ```bash
    git clone https://github.com/codelibs/curl4j.git
    cd curl4j
    mvn clean test
    ```
    
    ## License
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:11:14 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            protected Credentials getDefaultCredentials() {
                return defaultCreds;
            }
    
            @Override
            public boolean close() throws CIFSException {
                closeCalled = true;
                // Call super.close() to ensure the shutdown hook is removed
                return super.close();
            }
    
            public boolean isCloseCalled() {
                return closeCalled;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

            void testUnspecifiedFileIdImmutability() {
                byte[] originalFileId = Smb2Constants.UNSPECIFIED_FILEID;
                byte[] copyFileId = Smb2Constants.UNSPECIFIED_FILEID.clone();
    
                // Modify the copy
                copyFileId[0] = 0x00;
    
                // Verify original is unchanged
                assertEquals((byte) 0xFF, originalFileId[0], "Original FileId should remain unchanged");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top