Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for throwing (0.05 sec)

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

         * 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. guava/src/com/google/common/util/concurrent/Internal.java

    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportExceptionTest.java

        }
    
        @Test
        @DisplayName("Test exception can be thrown and caught")
        public void testThrowAndCatch() {
            // Test throwing and catching with message
            String expectedMessage = "Transport failed";
            assertThrows(TransportException.class, () -> {
                throw new TransportException(expectedMessage);
            });
    
            // Test throwing and catching with cause
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Internal.java

    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Internal.java

    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testWrapMethodIsCalled() throws DcerpcException {
            // Test that the wrap method can be called without throwing an exception
            dcerpcSecurityProvider.wrap(mockNdrBuffer);
    
            // Verify that the wrap method was called exactly once with the mockNdrBuffer
            verify(dcerpcSecurityProvider, times(1)).wrap(mockNdrBuffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            // Both instances should be of the same class
            assertEquals(exception1.getClass(), exception2.getClass());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Expected error";
            try {
                throw new FessSystemException(expectedMessage);
            } catch (FessSystemException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

            // Both instances should be of the same class
            assertEquals(exception1.getClass(), exception2.getClass());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "SSO configuration error";
            try {
                throw new SsoProcessException(expectedMessage);
            } catch (SsoProcessException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            final String errorMessage = "Data store operation failed";
    
            try {
                throw new DataStoreException(errorMessage);
            } catch (DataStoreException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbTransportPool.java

         * specified by the <code>UniAddress</code> parameter. If the credentials are
         * not accepted, an <code>SmbAuthException</code> will be thrown. If an error
         * occurs an <code>SmbException</code> will be thrown. If the credentials are
         * valid, the method will return without throwing an exception. See the
         * last <a href="../../../faq.html">FAQ</a> question.
         * <p>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top