- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 726 for fail (0.18 sec)
-
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 06 15:23:21 GMT 2023 - 20K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java
public void testSetValue_valuePresent() { for (Entry<K, V> entry : getMap().entrySet()) { if (entry.getKey().equals(k0())) { try { entry.setValue(v1()); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } expectUnchanged(); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 2.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
} public void testEnsureCapacity_fail() { try { Booleans.ensureCapacity(ARRAY_FALSE, -1, 1); fail(); } catch (IllegalArgumentException expected) { } try { // notice that this should even fail when no growth was needed Booleans.ensureCapacity(ARRAY_FALSE, 1, -1); fail(); } catch (IllegalArgumentException expected) { } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 15:43:29 GMT 2024 - 23.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
} public void testEnsureCapacity_fail() { try { Booleans.ensureCapacity(ARRAY_FALSE, -1, 1); fail(); } catch (IllegalArgumentException expected) { } try { // notice that this should even fail when no growth was needed Booleans.ensureCapacity(ARRAY_FALSE, 1, -1); fail(); } catch (IllegalArgumentException expected) { } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 15:43:29 GMT 2024 - 23.9K 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) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
if (getList().size() != expectedList.size()) { fail("size mismatch: " + reportContext(expectedList)); } for (int i = 0; i < expectedList.size(); i++) { E expected = expectedList.get(i); E actual = getList().get(i); if (expected != actual && (expected == null || !expected.equals(actual))) { fail("mismatch at index " + i + ": " + reportContext(expectedList)); } } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java
@Override public void testNullPointerInstance() {} // 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() {
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) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 21.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
Callables.asAsyncCallable(callable, MoreExecutors.newDirectExecutorService()); 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
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) -
android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java
} public void testCreateWithInvalidSizes() { try { HashBasedTable.create(100, -5); fail(); } catch (IllegalArgumentException expected) { } try { HashBasedTable.create(-5, 20); fail(); } catch (IllegalArgumentException expected) { } } public void testCreateCopy() { Table<String, Integer, Character> original =
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 3.6K bytes - Viewed (0)