Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 300 for Fail (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            ComponentUtil.register(new MockRoleQueryHelper(), "roleQueryHelper");
        }
    
        public void test_init() {
            try {
                labelTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_load() {
            int result = labelTypeHelper.load();
            assertTrue(result >= 0);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top