- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 446 for amatch (0.24 sec)
-
android/guava-tests/test/com/google/common/primitives/ShortsTest.java
public void testEnsureCapacity_fail() { try { Shorts.ensureCapacity(ARRAY1, -1, 1); fail(); } catch (IllegalArgumentException expected) { } try { // notice that this should even fail when no growth was needed Shorts.ensureCapacity(ARRAY1, 1, -1); fail(); } catch (IllegalArgumentException expected) { } } public void testJoin() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 26.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
public void testPutAllNullValueNullLast_unsupported() { int size = getNumElements(); try { multimap().putAll(k3(), Lists.newArrayList(v3(), null)); fail(); } catch (NullPointerException expected) { } Collection<V> values = multimap().get(k3()); if (values.size() == 0) { expectUnchanged();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals( "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents()); assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents()); assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1)); bus.unregister(catcher2); bus.post(EVENT); assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals( "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents()); assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents()); assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1)); bus.unregister(catcher2); bus.post(EVENT); assertEquals(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java
// put() and putAll() aren't supported. @Override public void testPut() { try { table.put("foo", 1, 'a'); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } assertSize(0); } @Override public void testPutAllTable() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 3.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
public void testEnsureCapacity_fail() { try { Floats.ensureCapacity(ARRAY1, -1, 1); fail(); } catch (IllegalArgumentException expected) { } try { // notice that this should even fail when no growth was needed Floats.ensureCapacity(ARRAY1, 1, -1); fail(); } catch (IllegalArgumentException expected) { } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 29.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 20.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
} @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES) public void testContainsAll_nullNotAllowed() { try { assertFalse(collection.containsAll(MinimalCollection.of((E) null))); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_QUERIES) public void testContainsAll_nullAllowed() { assertFalse(collection.containsAll(MinimalCollection.of((E) null))); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 3.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/TearDownStackTest.java
assertEquals(false, tearDownTwo.ran); try { stack.runTearDown(); fail("runTearDown should have thrown an exception"); } catch (ClusterException expected) { assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two"); } catch (RuntimeException e) { throw new RuntimeException( "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 15:19:38 GMT 2023 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
ListenableFuture<String> future = asyncCallable.call(); try { future.get(); fail("Expected exception to be thrown"); } catch (ExecutionException e) { assertThat(e).hasCauseThat().isSameInstanceAs(expected); } } @J2ktIncompatible @GwtIncompatible // threads public void testRenaming() throws Exception {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 5.4K bytes - Viewed (0)