- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 785 for EXPECTED (0.12 seconds)
-
android/guava-tests/test/com/google/common/base/JoinerTest.java
Joiner joiner, Iterable<? extends @Nullable Integer> parts, String expected) { assertThat(joiner.join(parts)).isEqualTo(expected); assertThat(joiner.join(parts.iterator())).isEqualTo(expected); StringBuilder sb1FromIterable = new StringBuilder().append('x'); joiner.appendTo(sb1FromIterable, parts); assertThat(sb1FromIterable.toString()).isEqualTo("x" + expected);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
/** Checks that the current state is equal to the expected state. */ @GuardedBy("monitor") private void checkCurrentState(State expected) { State actual = state(); if (actual != expected) { if (actual == FAILED) { // Handle this specially so that we can include the failureCause, if there is one. throw new IllegalStateException(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 20.3K bytes - Click Count (0) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/PreparePatchReleaseTest.groovy
class PreparePatchReleaseTest extends Specification { def "patch version is correctly bumped"() { expect: ReleasedVersionsHelperKt.bumpPatchVersion(input) == expected where: input | expected "9.4.0" | "9.4.1" "9.4.1" | "9.4.2" "8.0.0" | "8.0.1" "1.2.3" | "1.2.4" } def "invalid version format is rejected"() { when:Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 23 14:47:12 GMT 2026 - 1.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java
ldapManager.init(); // Complex injection attempt should be fully escaped String injectionAttempt = "admin)(|(password=*"; String expected = "admin\\29\\28|\\28password=\\2a"; assertEquals(expected, ldapManager.escapeLDAPSearchFilter(injectionAttempt)); } @Test public void test_escapeLDAPSearchFilter_withAllSpecialCharacters() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java
} private static void assertHash(int seed, long expected1, long expected2, String stringInput) { HashCode expected = toHashCode(expected1, expected2); byte[] input = HashTestUtils.ascii(stringInput); assertEquals(expected, murmur3_128(seed).hashBytes(input)); assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 3.3K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
.build(), ) val connection = server.url("/").toUrl().openConnection() try { connection.getInputStream().read() fail<Unit>() } catch (expected: IOException) { // Expected. } } @Test fun responseTimeout() { server.enqueue( MockResponse .Builder() .body("ABC") .clearHeaders()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java
void testViewAgainstExpected(RangeSet<Integer> expected, RangeSet<Integer> view) { assertEquals(expected, view); assertEquals(expected.asRanges(), view.asRanges()); assertEquals(expected.isEmpty(), view.isEmpty()); if (!expected.isEmpty()) { assertEquals(expected.span(), view.span()); } for (int i = MIN_BOUND - 1; i <= MAX_BOUND + 1; i++) { assertEquals(expected.contains(i), view.contains(i));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 24.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
Map<Object, Object> expected = new LinkedHashMap<>(); for (int i = 0; i < alternatingKeysAndValues.length; i += 2) { expected.put(alternatingKeysAndValues[i], alternatingKeysAndValues[i + 1]); } assertThat(map).containsExactlyEntriesIn(expected).inOrder(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else { throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
} /** Awaits the latch and asserts that operation completed in the expected timeframe. */ final void awaitSuccessfully() { awaitLatchUninterruptibly(); completed.assertCompletionExpected(); assertEquals(0, getCount()); } /** * Awaits the latch with a timeout and asserts that operation completed in the expected * timeframe. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0)