Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,437 for fail (0.12 sec)

  1. maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java

    /**
     * ReactorManager - unused
     */
    @Deprecated
    public class ReactorManager {
        public static final String FAIL_FAST = "fail-fast";
    
        public static final String FAIL_AT_END = "fail-at-end";
    
        public static final String FAIL_NEVER = "fail-never";
    
        public static final String MAKE_MODE = "make";
    
        public static final String MAKE_DEPENDENTS_MODE = "make-dependents";
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 06:02:04 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. 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) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectAdded(e3());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
      public void testPutAbsentConcurrentWithEntrySetIteration() {
        try {
          Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
          put(e3());
          iterator.next();
          fail("Expected ConcurrentModificationException");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          equalsTester.addEqualityGroup((Object) null);
          fail("Should fail on null reference");
        } catch (NullPointerException e) {
        }
      }
    
      /** Test equalObjects after adding multiple instances at once with a null */
      public void testAddTwoEqualObjectsAtOnceWithNull() {
        try {
          equalsTester.addEqualityGroup(reference, equalObject1, null);
          fail("Should fail on null equal object");
        } catch (NullPointerException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

        try {
          getList().set(-1, e3());
          fail("set(-1) should throw IndexOutOfBoundsException");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testSet_indexTooHigh() {
        int index = getNumElements();
        try {
          getList().set(index, e3());
          fail("set(size) should throw IndexOutOfBoundsException");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * message passed to a later invocation of {@code fail()}, like "setCount should throw
       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    
      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * message passed to a later invocation of {@code fail()}, like "setCount should throw
       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    
      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          Preconditions.checkArgument(false);
          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckArgument_simpleMessage_success() {
        Preconditions.checkArgument(true, IGNORE_ME);
      }
    
      public void testCheckArgument_simpleMessage_failure() {
        try {
          Preconditions.checkArgument(false, new Message());
          fail("no exception thrown");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        List<String> list = Lists.newArrayList("a", "b", "c");
        FluentIterable<String> tail = FluentIterable.from(list).skip(2);
        list.subList(0, 2).clear();
        assertThat(tail).isEmpty();
      }
    
      public void testSkip_illegalArgument() {
        try {
          FluentIterable.from(asList("a", "b", "c")).skip(-1);
          fail("Skipping negative number of elements should throw IllegalArgumentException.");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        List<String> list = newArrayList("a", "b", "c");
        Iterable<String> tail = skip(list, 2);
        list.subList(0, 2).clear();
        assertTrue(Iterables.isEmpty(tail));
      }
    
      public void testSkip_illegalArgument() {
        List<String> list = newArrayList("a", "b", "c");
        try {
          skip(list, -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top