- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 459 for Fail (0.01 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) { try { // fine because the call is going to fail without modifying the entry @SuppressWarnings("unchecked") Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry; nullableValueEntry.setValue(null); fail("setValue on unmodifiable Map.Entry succeeded"); } catch (UnsupportedOperationException expected) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java
assertTrue(true); } public void test_sendCommand_jobNotFound() { try { processHelper.sendCommand("nonexistent", "test command"); fail("Expected JobNotFoundException"); } catch (JobNotFoundException e) { assertTrue(e.getMessage().contains("Job for nonexistent is not found")); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
} catch (Exception e) { fail("printThreadDump() should not throw exceptions: " + e.getMessage()); } } public void test_printThreadDumpAsWarn() { // This test verifies that printThreadDumpAsWarn() method exists and can be called without exceptions try { ThreadDumpUtil.printThreadDumpAsWarn(); } catch (Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
|-----END PRIVATE KEY----- | """.trimMargin() try { decode(certificatePem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a private key") } try { decode(pkcs8Pem) fail<Any>() } catch (expected: IllegalArgumentException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
e, equalObject1 + " [group 1, item 1] must be Object#equals to " + notEqualObject1 + " [group 1, item 2]"); return; } fail("Should get not equal to equal object error"); } /** * Test EqualsTester with no equals or not equals objects. This checks proper handling of null, * incompatible class and reflexive tests */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java
} // Test add method with null name public void test_add_nullName() { TestScriptEngine engine = new TestScriptEngine(); try { scriptEngineFactory.add(null, engine); fail("Should throw IllegalArgumentException for null name"); } catch (IllegalArgumentException e) { assertEquals("name or scriptEngine is null.", e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
} public void test_getThemeName_emptyName() { try { Artifact artifact = new Artifact("fess-theme", "1.0.0"); themeHelper.getThemeName(artifact); fail("Should throw exception"); } catch (Exception e) { // Could be ThemeException or StringIndexOutOfBoundsException assertTrue(true); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
throw new IOException("Test exception"); } }; try { SearchEngineUtil.getXContentString(xContent, XContentType.JSON); fail("Should throw IORuntimeException"); } catch (IORuntimeException e) { assertTrue(e.getCause() instanceof IOException); assertEquals("Test exception", e.getCause().getMessage()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 13.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java
@Override public java.util.List<jakarta.mail.Address> getSavedReplyToList() { return java.util.Collections.emptyList(); } @Override public java.util.List<jakarta.mail.Address> getSavedBccList() { return java.util.Collections.emptyList(); } @Override public java.util.List<jakarta.mail.Address> getSavedCcList() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 19.6K bytes - Viewed (0)