- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,955 for rethrow (2.33 sec)
-
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.lenient; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
@ParameterizedTest @DisplayName("getSmbTree invalid inputs (null/empty) throw IllegalArgumentException") @CsvSource({ ",service", // null share " ,service", // empty share "share,", // null service "share, " // empty service }) void getSmbTree_invalid(String share, String service) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
// Close and verify subsequent calls throw handle.close(); CIFSException ex1 = assertThrows(CIFSException.class, handle::getInput, "getInput after close must throw"); assertTrue(ex1.getMessage().contains("Already closed")); CIFSException ex2 = assertThrows(CIFSException.class, handle::getOutput, "getOutput after close must throw"); assertTrue(ex2.getMessage().contains("Already closed"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
// Make TYPE_FILESYSTEM path, not named pipe when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM); // Capture the ReadAndX request; throw to short-circuit network doAnswer(inv -> { throw new SmbException("short-circuit"); }).when(mockTree) .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.lenient; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
doThrow(new NullPointerException("dest argument is null")).when(mockResource).renameTo(null); // When/Then assertThrows(NullPointerException.class, () -> mockResource.renameTo(null), "Should throw NullPointerException for null destination"); } } @Nested @DisplayName("Stream Operations Tests") class StreamOperationsTests { @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
public void testExceptionHandling() throws Exception { SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Configure transport to throw exception on release Mockito.doThrow(new RuntimeException("Test exception")).when(mockTransport).release(); session.acquire(); // Should handle exceptions gracefully
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
assertNull(unwrapped); } } @Nested @DisplayName("Exception handling tests") class ExceptionHandlingTests { @Test @DisplayName("doEnum rethrows CIFSException when not UnknownHostException") void doEnum_rethrowsCIFSException_whenNotUnknownHost() throws Exception { // Arrange SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt
.build() clientCert = HeldCertificate .Builder() .signedBy(clientIntermediateCa) .serialNumber(4L) .commonName("Jethro Willis") .addSubjectAlternativeName("jethrowillis.com") .build() } @Test fun clientAuthForWants() { val client = buildClient(clientCert, clientIntermediateCa.certificate)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 13K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
} int rlen = r.length; int charsSkipped = index - lastEscape; // This is the size needed to add the replacement, not the full size // needed by the string. We only regrow when we absolutely must, and // when we do grow, grow enough to avoid excessive growing. Grow. int sizeNeeded = destIndex + charsSkipped + rlen; if (destSize < sizeNeeded) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0)