- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 186 for assertThat (0.14 sec)
-
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
assertThat(MoreFiles.equal(fooPath, barPath)).isFalse(); assertThat(MoreFiles.equal(fooPath, fooPath)).isTrue(); assertThat(MoreFiles.asByteSource(fooPath).contentEquals(MoreFiles.asByteSource(fooPath))) .isTrue(); Path fooCopy = Files.copy(fooPath, fs.getPath("fooCopy")); assertThat(Files.isSameFile(fooPath, fooCopy)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 26.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
public void testCount() { assertThat(EMPTY_STATS_VARARGS.count()).isEqualTo(0); assertThat(EMPTY_STATS_ITERABLE.count()).isEqualTo(0); assertThat(ONE_VALUE_STATS.count()).isEqualTo(1); assertThat(TWO_VALUES_STATS.count()).isEqualTo(2); assertThat(MANY_VALUES_STATS_VARARGS.count()).isEqualTo(MANY_VALUES_COUNT); assertThat(MANY_VALUES_STATS_ITERABLE.count()).isEqualTo(MANY_VALUES_COUNT);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 33.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.indexOf(EMPTY, ARRAY234)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0); assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0); assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8); assertThat(iia.indexOf(1)).isEqualTo(0); assertThat(iia.indexOf(8)).isEqualTo(5); assertThat(iia.indexOf(4)).isEqualTo(-1); assertThat(ImmutableDoubleArray.of(13).indexOf(13)).isEqualTo(0); assertThat(ImmutableDoubleArray.of().indexOf(21)).isEqualTo(-1); assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java
Set<Feature<?>> features = newHashSet(FOO); assertThat(addImpliedFeatures(features)).isSameInstanceAs(features); } public void testAddImpliedFeatures_addsImpliedFeatures() { assertThat(addImpliedFeatures(newHashSet(FOO))).containsExactly(FOO); assertThat(addImpliedFeatures(newHashSet(IMPLIES_IMPLIES_FOO))) .containsExactly(IMPLIES_IMPLIES_FOO, IMPLIES_FOO, FOO);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue(); assertSuccessful(future, 1); } public void testSetFutureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setFuture(null)); assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue(); assertSuccessful(future, 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
ImmutableListMultimap<String, Integer> multimap = zis.combine(zat).build(); assertThat(multimap.keySet()).containsExactly("a", "b", "c").inOrder(); assertThat(multimap.values()).containsExactly(1, 3, 2, 4).inOrder(); assertThat(multimap.get("a")).containsExactly(1, 3).inOrder(); assertThat(multimap.get("b")).containsExactly(2); assertThat(multimap.get("c")).containsExactly(4); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
} public void testCount() { assertThat(emptyAccumulator.count()).isEqualTo(0); assertThat(emptyAccumulatorByAddAllEmptyIterable.count()).isEqualTo(0); assertThat(emptyAccumulatorByAddAllEmptyStats.count()).isEqualTo(0); assertThat(oneValueAccumulator.count()).isEqualTo(1); assertThat(oneValueAccumulatorByAddAllEmptyStats.count()).isEqualTo(1); assertThat(twoValuesAccumulator.count()).isEqualTo(2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
} }; assertThat(testFuture.toString()) .matches( "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]"); TimeoutException e = assertThrows(TimeoutException.class, () -> testFuture.get(1, NANOSECONDS)); assertThat(e.getMessage()).contains("1 nanoseconds"); assertThat(e.getMessage()).contains("Because this test isn't done"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 47.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
assertThat(expected).hasCauseThat().isSameInstanceAs(cause); } @GwtIncompatible // getCauseAs(Throwable, Class) public void testGetCauseAs() { SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 14.6K bytes - Viewed (0)