- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 656 for EXPECTED (0.25 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} catch (AssertionFailedError expected) { String expectedMessage = "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be " + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]"; if (!expected.getMessage().contains(expectedMessage)) { fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 27 16:19:35 GMT 2024 - 8.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
} catch (AssertionFailedError expected) { String expectedMessage = "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be " + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]"; if (!expected.getMessage().contains(expectedMessage)) { fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 27 16:19:35 GMT 2024 - 8.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ToStringHelperTest.java
.add("field1", 1) .addValue("value1") .add("field2", "value2"); String expected = "TestClass{field1=1, value1, field2=value2}"; assertThat(helper.toString()).isEqualTo(expected); // Call toString again assertThat(helper.toString()).isEqualTo(expected); // Make sure the cached value is reset when we modify the helper at all
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 22K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
public void testAsAsyncCallable() throws Exception { String expected = "MyCallableString"; Callable<String> callable = () -> expected; AsyncCallable<String> asyncCallable = Callables.asAsyncCallable(callable, newDirectExecutorService()); ListenableFuture<String> future = asyncCallable.call(); assertThat(future.get()).isEqualTo(expected); } @J2ktIncompatible @GwtIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
public void testAsAsyncCallable() throws Exception { String expected = "MyCallableString"; Callable<String> callable = () -> expected; AsyncCallable<String> asyncCallable = Callables.asAsyncCallable(callable, newDirectExecutorService()); ListenableFuture<String> future = asyncCallable.call(); assertThat(future.get()).isEqualTo(expected); } @J2ktIncompatible @GwtIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
* of throwable. */ public void callAndAssertThrows( Class<? extends Throwable> expected, String methodName, Object... arguments) throws Exception { checkNotNull(expected); checkNotNull(methodName); checkNotNull(arguments); sendRequest(methodName, arguments); assertThat(getResponse(methodName).getThrowable()).isInstanceOf(expected); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
Random random = new Random(); byte[] expected = factory.getExpected(bytes); // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty int off = expected.length == 0 ? 0 : random.nextInt(expected.length); int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
List<Entry<Object, Object>> warmed = warmUp(cache); Set<Object> expected = new HashMap<>(cache.asMap()).keySet(); assertThat(keys).containsExactlyElementsIn(expected); assertThat(keys.toArray()).asList().containsExactlyElementsIn(expected); assertThat(keys.toArray(new Object[0])).asList().containsExactlyElementsIn(expected); new EqualsTester() .addEqualityGroup(cache.asMap().keySet(), keys)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
int i = 0; while (expectedIterator.hasNext()) { Object expected = expectedIterator.next(); assertTrue( "index " + i + " expected <" + expected + "., actual is exhausted", actualIterator.hasNext()); Object actual = actualIterator.next(); assertEquals("index " + i, expected, actual); i++; } if (actualIterator.hasNext()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 14.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
out.write(bytes, 4, 2); byte[] expected = {bytes[4], bytes[5]}; assertThat(out.toByteArray()).isEqualTo(expected); } public void testNewDataOutput_writeBoolean() { ByteArrayDataOutput out = ByteStreams.newDataOutput(); out.writeBoolean(true); out.writeBoolean(false); byte[] expected = {(byte) 1, (byte) 0}; assertThat(out.toByteArray()).isEqualTo(expected); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0)