- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 743 for assertThat (0.05 seconds)
-
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
ByteStreams.newDataInput( "This is a line\r\nThis too\rand this\nand also this".getBytes(UTF_8)); assertThat(in.readLine()).isEqualTo("This is a line"); assertThat(in.readLine()).isEqualTo("This too"); assertThat(in.readLine()).isEqualTo("and this"); assertThat(in.readLine()).isEqualTo("and also this"); } public void testNewDataInput_readFloat() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
public void testFindClassesToTest_testClass() { assertThat(findClassesToTest(ImmutableList.of(EmptyTest.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTests.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTestCase.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTestSuite.class))).isEmpty(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 02:48:50 GMT 2024 - 5.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
checkArgument(yDelta != 0.0); assertThat(transformation.isHorizontal()).isFalse(); assertThat(transformation.isVertical()).isFalse(); assertThat(transformation.inverse().isHorizontal()).isFalse(); assertThat(transformation.inverse().isVertical()).isFalse(); assertThat(transformation.transform(x1)).isWithin(ALLOWED_ERROR).of(y1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
} public void testOfToString() { assertThat(FluentIterable.of("yam", "bam", "jam", "ham").toString()) .isEqualTo("[yam, bam, jam, ham]"); } public void testToString() { assertThat(FluentIterable.from(emptyList()).toString()).isEqualTo("[]"); assertThat(FluentIterable.<String>of().toString()).isEqualTo("[]"); assertThat(FluentIterable.from(asList("yam", "bam", "jam", "ham")).toString())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
assertThat(MoreFiles.getFileExtension(FS.getPath("blah.tar.gz"))).isEqualTo("gz"); assertThat(MoreFiles.getFileExtension(root())).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath("."))).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath(".."))).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath("..."))).isEqualTo("");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 26.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/crypto/CachedCipherTest.java
final String encrypted1 = cipher1.encryptText(original); final String encrypted2 = cipher2.encryptText(original); assertThat(encrypted1, is(not(encrypted2))); assertThat(cipher1.decryptText(encrypted1), is(original)); assertThat(cipher2.decryptText(encrypted2), is(original)); } @Test public void testEmptyString() {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 5.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
Stopwatch stopwatch = Stopwatch.createStarted(); String result = proxy.sleepThenReturnInput("x"); assertThat(result).isEqualTo("x"); assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(DELAY_MS, ENOUGH_MS)); assertThat(target.finished).isTrue(); } public void testNewProxy_goodMethodWithNotEnoughTime() throws Exception { SampleImpl target = new SampleImpl(9999);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java
List<Future<String>> result = executorService.invokeAll(tasks, Duration.ofDays(365)); assertThat(result).hasSize(1); assertThat(Futures.getDone(result.get(0))).isEqualTo("invokeAll"); assertThat(recordedTasks).isSameInstanceAs(tasks); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofDays(365)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 4.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
} public void testOf() { assertThat(Optional.of("training").get()).isEqualTo("training"); } public void testOf_null() { assertThrows(NullPointerException.class, () -> Optional.of(null)); } public void testFromNullable() { Optional<String> optionalName = Optional.fromNullable("bob"); assertThat(optionalName.get()).isEqualTo("bob"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
for (long value : TEST_LONGS) { boolean expectSuccess = value >= min && value <= max; try { assertThat(UnsignedInteger.valueOf(value).longValue()).isEqualTo(value); assertThat(expectSuccess).isTrue(); } catch (IllegalArgumentException e) { assertThat(expectSuccess).isFalse(); } } } public void testValueOfBigInteger() { long min = 0;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 9.6K bytes - Click Count (0)