- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,976 for throwIt (0.05 sec)
-
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
void connectWrapException_wrapsToSmbException(SmbResourceLocatorImpl loc, Exception thrown) throws Exception { // Arrange: spy on instance to force connect() failure with specific exception CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx)); doThrow(thrown).when(trace).connect(loc);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers // When/Then: Should throw exception NdrException thrown = assertThrows(NdrException.class, () -> entry.decode(mockNdrBuffer)); assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage()); } } @Nested @DisplayName("SamrSamArray Tests") class SamrSamArrayTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// When/Then: Should throw last exception IOException thrown = assertThrows(IOException.class, () -> poolSpy.getSmbTransport(ctx, "failing.server", 445, false, false)); assertSame(secondException, thrown); // Verify fail counts incremented assertEquals(1, pool.failCounts.get("10.0.0.1"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
void testGetTransportContext() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); assertEquals(mockContext, handle.getTransportContext()); } @Test @DisplayName("Should return correct server name") void testGetServer() 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) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
when(dest.getAttributes()).thenReturn(SmbConstants.ATTR_ARCHIVE); // no READONLY bit // Act + Assert SmbAuthException thrown = assertThrows(SmbAuthException.class, () -> SmbCopyUtil.openCopyTargetFile(dest, SmbConstants.ATTR_NORMAL, false)); assertSame(authEx, thrown, "Should rethrow the same SmbAuthException instance"); verify(dest, times(1)).getAttributes();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
* * @return the NTLM challenge from the domain controller * @throws SmbException if an SMB error occurs * @throws UnknownHostException if the domain controller cannot be resolved */ public static NtlmChallenge getChallengeForDomain() throws SmbException, UnknownHostException { if (DOMAIN == null) { throw new SmbException("A domain was not specified"); } synchronized (DOMAIN) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Uninterruptibles.java
@CanIgnoreReturnValue public static <V extends @Nullable Object> V getUninterruptibly(Future<V> future) throws ExecutionException { try { return future.get(); } catch (InterruptedException e) { // Should never be thrown in GWT but play it safe throw new IllegalStateException(e); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClusterException.java
* added. * * @throws NullPointerException if {@code exceptions} is null * @throws IllegalArgumentException if {@code exceptions} is empty */ static RuntimeException create(Collection<? extends Throwable> exceptions) { if (exceptions.size() == 0) { throw new IllegalArgumentException("Can't create an ExceptionCollection with no exceptions"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
@Test void testDfsImplConstructor() { // The constructor is called in setUp(), so if no exception is thrown, this test passes. assertNotNull(dfsImpl); } // Tests for isTrustedDomain @Test void testIsTrustedDomain_DfsDisabled() throws SmbAuthException { // Scenario: DFS is disabled in the configuration. when(mockConfig.isDfsDisabled()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
} public void test_execute_withException() { // Create mock SearchEngineClient that throws exception searchEngineClient = new SearchEngineClient() { @Override public long deleteByQuery(String index, QueryBuilder query) { throw new RuntimeException("Delete operation failed"); } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.1K bytes - Viewed (0)