- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,187 for Try (0.15 sec)
-
guava-tests/test/com/google/common/math/MathPreconditionsTest.java
public void testCheckPositive_zeroInt() { try { MathPreconditions.checkPositive("int", 0); fail(); } catch (IllegalArgumentException expected) { } } public void testCheckPositive_maxInt() { MathPreconditions.checkPositive("int", Integer.MAX_VALUE); } public void testCheckPositive_minInt() { try { MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 8.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
} try { Helpers.assertContentsInOrder(list, "a", "b", "c", "d"); throw new Error(); } catch (AssertionFailedError expected) { } try { Helpers.assertContentsInOrder(list, "a", "c", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { Helpers.assertContentsInOrder(list, "a", "B", "c");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); try { iterator.remove(); fail(); } catch (UnsupportedOperationException expected) { } assertFalse(iterator.hasNext()); try { iterator.next(); fail(); } catch (NoSuchElementException expected) { } try { iterable.iterator(); fail();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); try { iterator.remove(); fail(); } catch (UnsupportedOperationException expected) { } assertFalse(iterator.hasNext()); try { iterator.next(); fail(); } catch (NoSuchElementException expected) { } try { iterable.iterator(); fail();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
public void testCheckPositive_zeroInt() { try { MathPreconditions.checkPositive("int", 0); fail(); } catch (IllegalArgumentException expected) { } } public void testCheckPositive_maxInt() { MathPreconditions.checkPositive("int", Integer.MAX_VALUE); } public void testCheckPositive_minInt() { try { MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java
@Override public void testContainsKey() { try { super.testContainsKey(); } catch (ClassCastException tolerated) { } } @J2ktIncompatible // https://youtrack.jetbrains.com/issue/KT-58242/ undefined behavior (crash) @Override public void testEntrySetContainsEntryIncompatibleKey() { try { super.testEntrySetContainsEntryIncompatibleKey();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
Thread.currentThread().interrupt(); try { assertEquals("foo", getUnchecked(immediateFuture("foo"))); assertTrue(Thread.currentThread().isInterrupted()); } finally { Thread.interrupted(); } } public void testGetUnchecked_cancelled() { SettableFuture<String> future = SettableFuture.create(); future.cancel(true); try { getUnchecked(future); fail();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 4.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
} try { Helpers.assertContentsInOrder(list, "a", "b", "c", "d"); throw new Error(); } catch (AssertionFailedError expected) { } try { Helpers.assertContentsInOrder(list, "a", "c", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { Helpers.assertContentsInOrder(list, "a", "B", "c");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt
} @Throws(IOException::class) fun flushRequest() { try { codec.flushRequest() } catch (e: IOException) { eventListener.requestFailed(call, e) trackFailure(e) throw e } } @Throws(IOException::class) fun finishRequest() { try { codec.finishRequest() } catch (e: IOException) { eventListener.requestFailed(call, e)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.2K bytes - Viewed (2) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java
} @Override public <T> T lookup(Class<T> type) { try { return container.lookup(type); } catch (ComponentLookupException e) { throw new LookupException(e); } } @Override public <T> T lookup(Class<T> type, String name) { try { return container.lookup(type, name); } catch (ComponentLookupException e) {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 3.1K bytes - Viewed (0)