- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,976 for throwIt (0.04 sec)
-
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* null will be returned. * * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the * default value of a parameter cannot be determined. * @throws IllegalAccessException if the class isn't public or is nested inside a non-public * class, preventing its methods from being accessible. * @throws InvocationTargetException if a static method threw exception. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
return; case 2: throw new IllegalArgumentException("Invalid argument"); case 3: throw new IllegalStateException("Invalid state"); case 4: throw new NullPointerException("Null pointer"); default: throw new RuntimeException("Generic error"); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/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.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
customHook.hook(assistantDirector); // Verify no exception is thrown to the caller assertTrue(true); } // Test shutdownCommonsHttpClient private method with reflection public void test_shutdownCommonsHttpClient_reflection() throws Exception { // Access the private method using reflection
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
* {@link SmbFile#getAttributes()} throws it. * @throws SmbException if an SMB error occurs. */ @Test void testAccept_ThrowsSmbException() throws SmbException { // Given a filter dosFileFilter = new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE); // and a mock file that throws an exception when getAttributes is called
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindingTest.java
DcerpcException thrown = assertThrows(DcerpcException.class, () -> { dcerpcBinding.setOption("endpoint", endpoint); }, "Should throw DcerpcException for invalid endpoint format."); assertTrue(thrown.getMessage().contains("Bad endpoint"), "Exception message should indicate a bad endpoint."); } @Test void testSetOptionOtherKey() throws DcerpcException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Transport.java
/** * Send a request over the transport * * @param request the request to send * @throws IOException if an I/O error occurs */ protected abstract void doSend(Request request) throws IOException; /** * Receive a response from the transport * * @param response the response object to populate * @throws IOException if an I/O error occurs */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 27.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage()); verify(supplier, times(1)).get(); verifyNoMoreInteractions(supplier); } @Test @DisplayName("No collaborator interaction occurs if exception is thrown beforehand")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
reset(mockHandle); } @Test void testConstructor_SuccessfulConnect4() throws IOException { // Test case: Constructor with successful MsrpcSamrConnect4 String server = "testServer"; int access = 123; // No exception thrown by sendrecv for MsrpcSamrConnect4 doNothing().when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Should either throw exception or fail gracefully after close try { digest.sign(data, 0, data.length, request, response); // If no exception is thrown, the operation should have been no-op or handled gracefully assertTrue(true, "Sign operation after close should either throw exception or handle gracefully");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0)