- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 1,971 for Exceptions (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
} public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); } public void testSetFailureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertFalse(future.isDone()); assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
// Setup mock SearchLogHelper that throws wrapped checked exception SearchLogHelper mockSearchLogHelper = new SearchLogHelper() { @Override public void storeSearchLog() { try { throw new Exception("Checked exception"); } catch (Exception e) { throw new RuntimeException("Wrapped: " + e.getMessage(), e);
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/org/codelibs/core/misc/AssertionUtilTest.java
import static org.codelibs.core.misc.AssertionUtil.assertState; import static org.hamcrest.CoreMatchers.is; import org.codelibs.core.exception.ClIllegalArgumentException; import org.codelibs.core.exception.ClIllegalStateException; import org.codelibs.core.exception.ClIndexOutOfBoundsException; import org.codelibs.core.exception.NullArgumentException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
}, "Should throw UnknownHostException for non-existent NetBIOS name with type"); // Verify the exception message indicates name resolution failure assertTrue(exception.getMessage().contains("NONEXISTENT") || exception.getMessage().contains("unknown") || exception.getMessage().contains("not found"), "Exception message should indicate name resolution failure"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java
*/ @Rule public ExpectedException exception = ExpectedException.none(); /** * @throws Exception */ @Before public void setUp() throws Exception { TimeZone.setDefault(TimeZone.getTimeZone("GMT")); } /** * @throws Exception */ @After public void tearDown() throws Exception { TimeZone.setDefault(null); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java
} public void test_initializeProbes() { // Test that initializeProbes doesn't throw exception try { ThumbnailGenerator.initializeProbes(); // If no exception thrown, test passes assertTrue(true); } catch (Exception e) { fail("initializeProbes should not throw exception: " + e.getMessage()); } } public void test_main_withHelp() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
void testGetSessionKey_ThrowsCIFSException() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); CIFSException exception = new CIFSException("Test exception"); when(mockSmbPipeHandleInternal.getSessionKey()).thenThrow(exception); assertThrows(CIFSException.class, handle::getSessionKey); } }
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/pac/kerberos/KerberosRelevantAuthDataTest.java
Exception exception = assertThrows(Exception.class, () -> { new KerberosRelevantAuthData(emptyToken, keys); }, "An exception should be thrown for an empty token."); // The exception could be PACDecodingException or NullPointerException assertTrue(exception instanceof PACDecodingException || exception instanceof NullPointerException,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
*/ public class ResourceTraversalTest { private static int count = 0; /** * @throws Exception */ @Before public void setUp() throws Exception { count = 0; } /** * @throws Exception */ @Test public void testForEachFile() throws Exception { final File rootDir = ResourceUtil.getBuildDir(getClass());
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java
*/ public class IntegerConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToInteger() throws Exception { assertEquals(Integer.valueOf("1000"), IntegerConversionUtil.toInteger("1,000")); } /** * @throws Exception */ public void testToPrimitiveInt() throws Exception { assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000")); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.5K bytes - Viewed (0)