- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 1,064 for EXPECTED (0.04 sec)
-
src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java
} catch (Exception e) { // Expected in test environment assertTrue(true); } } public void test_getUserInfo_nullUserCode() { try { var result = searchLogHelper.getUserInfo(null); assertFalse(result.isPresent()); } catch (Exception e) { // Expected in test environment assertTrue(true); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
List<String> actual = newArrayList(result); List<String> expected = asList("1", "2", "null", "3"); assertEquals(expected, actual); } // Far less exhaustive than the tests in IteratorsTest public void testCycle() { Iterable<String> cycle = Iterables.cycle("a", "b"); int howManyChecked = 0; for (String string : cycle) { String expected = (howManyChecked % 2 == 0) ? "a" : "b";
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
CurlRequest request = new CurlRequest(Method.GET, "https://example.com"); request.param("key", "value"); try { request.encoding("ISO-8859-1"); fail("Expected CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("must be called before param method")); } } @Test public void testThresholdMethod() {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeParameterTest.java
public <T> void testCaptureTypeParameter() throws Exception { TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; TypeVariable<?> expected = TypeParameterTest.class.getDeclaredMethod("testCaptureTypeParameter") .getTypeParameters()[0]; assertEquals(expected, variable); } public void testConcreteTypeRejected() { assertThrows(IllegalArgumentException.class, () -> new TypeParameter<String>() {});
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
assertNull(k); assertEquals(getValueForNullKey(), v); return v3(); })); Entry<K, V>[] expected = createArrayWithNullKey(); expected[getNullLocation()] = entry(null, v3()); expectContents(expected); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testComputeIfPresent_nullKeySupportedAbsent() { assertNull(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
.invoke(future, badFuture); CancellationException expected = assertThrows(CancellationException.class, () -> future.get()); assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class); assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString()); } private Future<?> newFutureInstance() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/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());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
.invoke(future, badFuture); CancellationException expected = assertThrows(CancellationException.class, () -> future.get()); assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class); assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString()); } private Future<?> newFutureInstance() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java
chain.updateThrowsException = true; User user = createTestUser("testuser", "Test User"); try { chain.update(user); fail("Expected exception to be thrown"); } catch (RuntimeException e) { assertEquals("Update failed", e.getMessage()); } assertEquals(1, chain.updateCalls.size()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
for (Thread thread : threads) { thread.join(); } // All threads should get the same instance LogStream expected = instances[0]; for (LogStream instance : instances) { assertSame(expected, instance); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0)