Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 726 for fail (0.13 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

                  });
          fail("Expected NullPointerException or UnsupportedOperationException");
        } catch (NullPointerException | UnsupportedOperationException expected) {
        }
      }
    
      public void testMergeNullFunction() {
        try {
          getMap().merge(k0(), v3(), null);
          fail("Expected NullPointerException or UnsupportedOperationException");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/OptionalTest.java

        try {
          presentAsSet.add("b");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testAsSet_absentIsImmutable() {
        Set<Object> absentAsSet = Optional.absent().asSet();
        try {
          absentAsSet.add("foo");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/AsciiTest.java

        try {
          Ascii.truncate("foobar", 2, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", 8, "1234567890");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", -1, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/BaseEncodingTest.java

          base64().upperCase();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testBase64CannotLowerCase() {
        try {
          base64().lowerCase();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testBase64CannotIgnoreCase() {
        try {
          base64().ignoreCase();
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

              assertGoodTesterAnnotation(asAnnotation(containedClass));
            } else {
              fail(
                  rootLocaleFormat(
                      "Feature enum %s contains a class named "
                          + "'Require' but it is not an annotation.",
                      featureEnumClass));
            }
            return;
          }
        }
        fail(
            rootLocaleFormat(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      }
    
      @CollectionFeature.Require({SUPPORTS_ITERATOR_REMOVE, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      @CollectionSize.Require(SEVERAL)
      public void testRemoveIfSomeMatchesConcurrentWithIteration() {
        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
          iterator.next();
          fail("Expected ConcurrentModificationException");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      public void testEnsureCapacity_fail() {
        try {
          Shorts.ensureCapacity(ARRAY1, -1, 1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // notice that this should even fail when no growth was needed
          Shorts.ensureCapacity(ARRAY1, 1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        try {
          stopwatch.start();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertFalse(task.isDone());
        task.cancel(false);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertFalse(task.wasInterrupted());
        try {
          getDone(task);
          fail();
        } catch (CancellationException expected) {
        }
        verifyThreadWasNotInterrupted();
      }
    
      public void testFailed() throws Exception {
        final Exception e = new Exception();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

            .isTrue();
      }
    
      public void testEnsureCapacity_fail() {
        try {
          Floats.ensureCapacity(ARRAY1, -1, 1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // notice that this should even fail when no growth was needed
          Floats.ensureCapacity(ARRAY1, 1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top