Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for propagated (0.05 sec)

  1. src/test/java/jcifs/SmbSessionTest.java

                doThrow(testException).when(mockSession).close();
    
                Exception thrownException = assertThrows(Exception.class, mockSession::close, "close() should propagate exceptions");
                assertEquals("Test close exception", thrownException.getMessage());
            }
        }
    
        @Nested
        @DisplayName("Configuration Access Tests")
        class ConfigurationAccessTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/SneakyThrows.java

       * {@code throws} clause: Some such methods can in fact throw a checked exception (e.g., by
       * calling code written in Kotlin).) Typically, we want to let a {@link Throwable} from such a
       * method propagate untouched, just as we'd typically let it do for a non-reflective call.
       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/SneakyThrows.java

       * {@code throws} clause: Some such methods can in fact throw a checked exception (e.g., by
       * calling code written in Kotlin).) Typically, we want to let a {@link Throwable} from such a
       * method propagate untouched, just as we'd typically let it do for a non-reflective call.
       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/AddressTest.java

            // When & Then
            assertThrows(UnknownHostException.class, () -> {
                mockAddress.toInetAddress();
            }, "Should propagate UnknownHostException");
        }
    
        @Test
        @DisplayName("firstCalledName should return valid name for session establishment")
        void testFirstCalledNameContract() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            verify(treeConnection).ensureDFSResolved(resourceLoc);
        }
    
        @Test
        @DisplayName("hasCapability delegates and propagates exceptions")
        void hasCapabilityDelegates() throws Exception {
            // Happy path delegates; invalid case propagates SmbException
            when(treeConnection.hasCapability(123)).thenReturn(true);
            assertTrue(handle.hasCapability(123));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

              public void run() {
                throw new BadRunnableException();
              }
            };
    
        future.set(1);
        future.addListener(bad, directExecutor()); // BadRunnableException must not propagate.
      }
    
      public void testMisbehavingListenerLaterDone() {
        class BadRunnableException extends RuntimeException {}
    
        CountingRunnable before = new CountingRunnable();
        Runnable bad =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                when(mockSmbPipeHandleInternal.getSessionKey()).thenReturn(expectedKey);
                assertArrayEquals(expectedKey, handle.getSessionKey());
            }
    
            @Test
            @DisplayName("Should propagate CIFSException when getting session key")
            void testGetSessionKey_ThrowsCIFSException() throws Exception {
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                assertThrows(SmbUnsupportedOperationException.class, () -> SmbEnumerationUtil.doEnum(parent, "*", 0, null, null));
            }
    
            @Test
            @DisplayName("list propagates SmbUnsupportedOperationException from doEnum")
            void list_propagatesUnsupportedOperationException() throws Exception {
                // Arrange: same setup as above to force doEnum -> SmbUnsupportedOperationException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                // Then: Should call sendrecv with bind message
                verify(spyHandle).sendrecv(any(DcerpcMessage.class));
            }
    
            @Test
            @DisplayName("Should propagate IOException during bind")
            void testBindIOException() throws DcerpcException, IOException {
                // Given: Spy that throws IOException on sendrecv
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileFilterTest.java

            assertTrue(filter.accept(smbFile), "Positive size should be accepted");
            verify(smbFile, times(1)).length();
            verifyNoMoreInteractions(smbFile);
        }
    
        @Test
        @DisplayName("accept: propagates SmbException thrown by dependency")
        void accept_propagatesSmbException() throws Exception {
            // Arrange: filter delegates to isDirectory which may throw SmbException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top