- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,760 for throwIt (0.04 sec)
-
android/guava-tests/test/com/google/common/io/CloserTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { customCb.executeWithCircuitBreaker(() -> { throw new RuntimeException("non-critical error"); }, isFailure); fail("Should have thrown exception"); } catch (CIFSException e) { // Expected - exception is thrown but not counted as failure } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
throw t; } } /** Calls threadFail with message "should throw exception". */ public void threadShouldThrow() { threadFail("should throw exception"); } /** Calls threadFail with message "should throw" + exceptionName. */ public void threadShouldThrow(String exceptionName) { threadFail("should throw " + exceptionName); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 37.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
try (InputStream is = null) { if (is == null) { throw new IOException("Resource is null"); } fail("Should not reach this point"); } catch (IOException e) { assertEquals("Resource is null", e.getMessage()); // No NullPointerException should be thrown when exiting try-with-resources } } /**
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
// Now, mock the behavior for MsrpcLsarClose to throw IOException doThrow(new IOException("Close network error")).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class)); // Act & Assert IOException thrown = assertThrows(IOException.class, () -> { handle.close(); }); assertEquals("Close network error", thrown.getMessage());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
} /** * Tests the {@link PacUnicodeString#check(String)} method with a valid string. * * @throws PACDecodingException if the check fails, which is not expected in this test. */ @Test void testCheck_withValidString() throws PACDecodingException { // Corresponds to a string of length 5 (10 bytes for UTF-16)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
* * @throws CIFSException */ @Test void testClose_success() throws CIFSException { smbFileHandle.close(); verify(smbFileHandle, times(1)).close(); } /** * Test close() when a CIFSException is thrown. * * @throws CIFSException */ @Test void testClose_throwsCIFSException() throws CIFSException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
} /** * Test that getText throws exception when null stream is provided. * Note: validateInputStream throws the exception, so the validateCalled flag * is never set to true (exception is thrown before flag assignment). */ public void test_getText_throwsExceptionForNullStream() { try {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
assertTrue(thrown.getCause() instanceof MalformedURLException); } @Test void testGetPipe() throws CIFSException, MalformedURLException { // Test getPipe(String url, int pipeType) method String url = "smb://server/IPC$/pipeName"; // Corrected URL for named pipe int pipeType = 1; SmbPipeResource mockSmbPipeResource = mock(SmbNamedPipe.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0)