- Sort Score
- Result 10 results
- Languages All
Results 1031 - 1040 of 2,073 for catch (0.04 sec)
-
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
method.invoke(multiChannelManager, localhost, loopback); // If it doesn't throw, that's unexpected for localhost fail("Expected CIFSException for localhost multi-channel attempt"); } catch (java.lang.reflect.InvocationTargetException e) { // We expect this to fail, but it should be a CIFSException, not a NullPointerException assertTrue(e.getCause() instanceof CIFSException);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java
TestFessLabels labels = new TestFessLabels(); labels.testAssertPropertyNotNull(null); fail("Should throw IllegalArgumentException"); } catch (IllegalArgumentException e) { assertEquals("The argument 'property' for message should not be null.", e.getMessage()); } } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 13.8K bytes - Viewed (0) -
cmd/bitrot.go
} // bitrotSelfTest performs a self-test to ensure that bitrot // algorithms compute correct checksums. If any algorithm // produces an incorrect checksum it fails with a hard error. // // bitrotSelfTest tries to catch any issue in the bitrot implementation // early instead of silently corrupting data. func bitrotSelfTest() { checksums := map[BitrotAlgorithm]string{
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Feb 26 19:26:13 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
response.writeBytesWireFormat(buffer, 0); } success[index] = true; } catch (Exception e) { success[index] = false; } }); } // When for (Thread thread : threads) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
public static SID SYSTEM = null; static { try { EVERYONE = new SID("S-1-1-0"); CREATOR_OWNER = new SID("S-1-3-0"); SYSTEM = new SID("S-1-5-18"); } catch (final SmbException se) { log.error("Failed to create builtin SIDs", se); } } /** * Convert a sid_t to byte array * * @param sid the RPC sid_t structure to convertRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
try { Iterables.get(iterable, -1); fail(); } catch (IndexOutOfBoundsException expected) { } assertEquals("a", Iterables.get(iterable, 0)); assertEquals("b", Iterables.get(iterable, 1)); assertEquals("c", Iterables.get(iterable, 2)); try { Iterables.get(iterable, 3); fail(); } catch (IndexOutOfBoundsException nsee) { } try {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
AtomicInteger runCalled = new AtomicInteger(); list.add( new Runnable() { @Override public void run() { try { okayToRun.await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } runCalled.getAndIncrement(); } },
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsTest.java
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt
return } try { testHttpUrl(testData) if (KNOWN_FAILURES.contains(testData.toString())) { System.err.println("Expected failure but was success: $testData") } } catch (e: Throwable) { if (KNOWN_FAILURES.contains(testData.toString())) { System.err.println("Ignoring known failure: $testData") e.printStackTrace() } else { throw e } }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 4.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
// Assert that escapers throw null pointer exceptions. try { escaper.escape((String) null); Assert.fail("exception not thrown when escaping a null string"); } catch (NullPointerException e) { // pass } } /** * Asserts that an escaper escapes the given character into the expected string. * * @param escaper the non-null escaper to testRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 3.8K bytes - Viewed (0)