- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 608 for Fail (0.05 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) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt
fail("Encoding $component $codePoint using $encoding") } return } // Check that the URI and HttpURL have the exact same escaping. if (toAndFromUri != httpUrl) { fail("Encoding $component $codePoint using $encoding") } if (uri.toString() != httpUrl.toString()) { fail("Encoding $component $codePoint using $encoding") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.5K 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/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) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 75.4K 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/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) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
+ "."); return; } fail(); } public void testEqualsOnReturnValues_bad() throws Exception { try { tester.forAllPublicStaticMethods(BadEqualsFactory.class).testEquals(); } catch (AssertionError expected) { return; } fail(); } private static class BadEqualsFactory {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
@Override public void oneArg(String s) { // Fail: missing NPE for s } } public void testFailOneArgDoesntThrowNpe() { shouldFail(new FailOneArgDoesntThrowNpe()); } private static class FailOneArgThrowsWrongType extends PassObject { @Override public void oneArg(String s) { doThrow(s); // Fail: throwing non-NPE exception for null s } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
// The opposite order should fail (Policies.THROW). PotentialDeadlockException firstException = null; lockB.lock(); PotentialDeadlockException expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); firstException = expected; // Second time should also fail, with a cached causal chain.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0)