- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 448 for throwing (0.19 sec)
-
src/test/java/jcifs/SmbTreeTest.java
assertEquals(null, result, "Should return null when type cannot be unwrapped"); verify(smbTree).unwrap(CustomSmbTree.class); } /** * Test for unwrap() method throwing exception. * Verifies that unwrap can throw exceptions when appropriate. */ @Test void testUnwrap_throwsException() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
// Both resources should be closed verify(filter, times(2)).accept(resource); verify(resource, times(2)).close(); } @Test @DisplayName("Iterator with filter throwing exception") void iteratorWithFilterException() throws Exception { // Setup: first attempt throws, second succeeds FileEntry entry1 = mock(FileEntry.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
* Verify that all methods can be called with null buffers without * throwing exceptions. This test ensures robustness of the implementation. */ @Test void methodsHandleNullBuffersGracefully() { // Arrange TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); // Act & Assert - no exceptions should be thrown assertDoesNotThrow(() -> resp.writeSetupWireFormat(null, 0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java
StackTraceElement firstElement = stackTrace[0]; assertEquals(this.getClass().getName(), firstElement.getClassName()); } public void test_throwAndCatch() { // Test throwing and catching the exception String username = "nonexistentuser"; try { throw new FessUserNotFoundException(username); } catch (FessUserNotFoundException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
int securityInfo = OWNER_SECURITY_INFORMATION; querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, securityInfo); // Constructor should initialize the object without throwing exceptions assertNotNull(querySecurityDesc); // Test toString contains the expected values to verify field initialization String str = querySecurityDesc.toString();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
?: listOf() fun shutdownInput() { javaNetSocket.shutdownInput() } fun shutdownOutput() { javaNetSocket.shutdownOutput() } /** Sleeps [nanos], throwing if the socket is closed before that period has elapsed. */ fun sleepWhileOpen(nanos: Long) { var ms = nanos / 1_000_000L val ns = nanos - (ms * 1_000_000L) while (ms > 100) { Thread.sleep(100)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
shouldFail(new FailOneArgDoesntThrowNpe()); } private static class FailOneArgThrowsWrongType extends PassObject { @Override public void oneArg(String s) { doThrow(s); // Fail: throwing non-NPE exception for null s } } public void testFailOneArgThrowsWrongType() { shouldFail(new FailOneArgThrowsWrongType()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
// Assert throwing/catching behavior with assertThrows SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> { throw new SMBProtocolDecodingException(); }, "Should be throwable via assertThrows"); assertTrue(thrown instanceof CIFSException, "Thrown instance should also be CIFSException subtype"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
// Then assertNotNull(ex); assertEquals(message, ex.getMessage()); assertEquals(cause, ex.getCause()); } @Test @DisplayName("Should handle null message and/or cause without throwing") void testNullInputs() { assertDoesNotThrow(() -> { SpnegoException ex1 = new SpnegoException((String) null); assertNotNull(ex1); assertNull(ex1.getMessage());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
} @Test @DisplayName("Test all write methods with null buffer") void testWriteMethodsWithNullBuffer() { // Even with null buffer, methods should return 0 without throwing exception int result = response.writeSetupWireFormat(null, 0); assertEquals(0, result); result = response.writeParametersWireFormat(null, 0); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0)