Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 721 for lose (0.01 sec)

  1. android/guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testNullCloseable() throws IOException {
        Closer closer = Closer.create();
        closer.register(null);
        closer.close();
      }
    
      /**
       * Asserts that an exception was thrown when trying to close each of the given throwables and that
       * each such exception was suppressed because of the given thrown exception.
       */
      private void assertSuppressed(Suppression... expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

     * * `Response.body().close()`
     * * `Response.body().source().close()`
     * * `Response.body().charStream().close()`
     * * `Response.body().byteStream().close()`
     * * `Response.body().bytes()`
     * * `Response.body().string()`
     *
     * There is no benefit to invoking multiple `close()` methods for the same response body.
     *
     * For synchronous calls, the easiest way to make sure a response body is closed is with a `try`
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testNullCloseable() throws IOException {
        Closer closer = Closer.create();
        closer.register(null);
        closer.close();
      }
    
      /**
       * Asserts that an exception was thrown when trying to close each of the given throwables and that
       * each such exception was suppressed because of the given thrown exception.
       */
      private void assertSuppressed(Suppression... expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var receivedCloseCode = -1
    
      /** The close reason from the peer, or null if this web socket has not yet read a close frame. */
      private var receivedCloseReason: String? = null
    
      /** True if this web socket failed and the listener has been notified. */
      private var failed = false
    
      /** Total number of pings sent by this web socket. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        }
    
        // close() should close underlying handle with 0L when valid
        @Test
        @DisplayName("close() closes underlying handle when valid")
        void close_validHandle_invokesClose() throws Exception {
            when(handle.isValid()).thenReturn(true);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false);
    
            sut.close();
    
            verify(handle, times(1)).close(0L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Closer.java

       * any exceptions thrown when attempting to close a closeable will be suppressed. Otherwise, the
       * <i>first</i> exception to be thrown from an attempt to close a closeable will be thrown and any
       * additional exceptions that are thrown after that will be suppressed.
       */
      @Override
      public void close() throws IOException {
        Throwable throwable = thrown;
    
        // close closeables in LIFO order
        while (!stack.isEmpty()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

                    }
                    assertThat(path1, is(notNullValue()));
                    assertThat(is, is(notNullValue()));
                    count++;
                } finally {
                    CloseableUtil.close(is);
                }
            });
            assertTrue(count > 0);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testForEachJarFile() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that the close method can be called without throwing an exception.
             * @throws CIFSException if an error occurs during close.
             */
            @Test
            public void testClose() throws CIFSException {
                assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object.");
                // Verify that the close method was called
    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/CloseableIteratorTest.java

        @Mock
        private CloseableIterator<SmbResource> mockIterator;
    
        @Test
        @DisplayName("Should define close method")
        void testCloseMethod() throws CIFSException {
            // When
            mockIterator.close();
    
            // Then
            verify(mockIterator).close();
        }
    
        @Test
        @DisplayName("Should extend Iterator and AutoCloseable")
        void testInterfaceInheritance() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
Back to top