Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,240 for chose (0.02 sec)

  1. src/test/java/jcifs/SmbTreeHandleTest.java

        }
    
        /**
         * Test for close() method.
         * Verifies that the close method can be called without throwing an exception.
         * @throws CIFSException
         */
        @Test
        void testClose() throws CIFSException {
            smbTreeHandle.close();
            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
         * Test for close() method throwing CIFSException.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. 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)
  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. 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)
  5. guava/src/com/google/common/io/CharStreams.java

       * <p><b>Java 11+ users:</b> use {@link Writer#nullWriter()} instead. Note that the {@link
       * 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs/integrations/veeam/README.md

    For Veeam Backup with Immutability, choose the amount of days you want to make backups immutable for
    
    ![Choose Immutability Days for Object Store](https://raw.githubusercontent.com/minio/minio/master/docs/integrations/veeam/screenshots/object_store_immutable_days.png)
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. cmd/storage-rest-client.go

    	if err != nil {
    		return err
    	}
    	defer xhttp.DrainBody(respBody)
    	_, err = waitForHTTPResponse(respBody)
    	return toStorageErr(err)
    }
    
    // Close - marks the client as closed.
    func (client *storageRESTClient) Close() error {
    	client.restClient.Close()
    	return nil
    }
    
    var emptyDiskID = ""
    
    // Returns a storage rest client.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top