- Sort Score
- Num 10 results
- Language All
Results 301 - 310 of 785 for EXPECTED (0.07 seconds)
-
guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java
public void testGetKeyMatchesString() { for (StandardSystemProperty property : StandardSystemProperty.values()) { String fieldName = property.name(); String expected = Ascii.toLowerCase(fieldName).replaceAll("_", "."); assertThat(property.key()).isEqualTo(expected); } } public void testGetValue() { for (StandardSystemProperty property : StandardSystemProperty.values()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 01:05:11 GMT 2026 - 2.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/UrlEscaperTesting.java
/** * Testing utilities for {@link UrlEscapers} and {@link LegacyUrlEscapersTest}. * * @author David Beaumont */ @GwtCompatible @NullUnmarked final class UrlEscaperTesting { /** * Helper to assert common expected behaviour of uri escapers. You should call * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'. */ @SuppressWarnings("nullness") // test of a bogus callCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/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.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
fail("setError should throw NullPointerException when passed null exception"); } catch (NullPointerException e) { // Expected - WebApiException constructor cannot handle null exception assertTrue("Should get expected NPE message", e.getMessage().contains("Cannot invoke \"java.lang.Exception.getMessage()\" because \"e\" is null")); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Predicate.java
* or method references instead of classes, leaving your code easier to migrate in the future. * * <p>To use a reference of this type (say, named {@code guavaPredicate}) in a context where {@code * java.util.function.Predicate} is expected, use the method reference {@code * guavaPredicate::apply}. For the other direction, use {@code javaUtilPredicate::test}. A future * version of this interface will be made to <i>extend</i> {@code java.util.function.Predicate}, so
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 18 15:22:00 GMT 2025 - 3.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt
server.requireClientAuth() val call = client.newCall(Request.Builder().url(server.url("/")).build()) assertFailsWith<IOException> { call.execute() }.also { expected -> when (expected) { is SSLHandshakeException -> { // JDK 11+ } is SSLException -> { // javax.net.ssl.SSLException: readRecord }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 13K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java
// We verify the method handles the case gracefully try { emptyGenerator.isTarget(docMap); } catch (IllegalStateException e) { // Expected when container is not initialized assertTrue(e.getMessage().contains("Not initialized")); } } @Test public void test_getName() { // Initialize without containerCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 6.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.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(); } private static class IntHolder implements Serializable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/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 - 7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java
Platform.format("remove(%d) should return the element at index %d", index, index), getList().get(index), getList().remove(index)); List<E> expected = copyToList(createSamplesArray()); expected.remove(index); expectContents(expected); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0)