Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,618 for fail (0.17 sec)

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

        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithIteration() {
        try {
          Iterator<E> iterator = collection.iterator();
          collection.clear();
          iterator.next();
          /*
           * We prefer for iterators to fail immediately on hasNext, but ArrayList
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.3K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        this.tester = EquivalenceTester.of(equivalenceMock);
      }
    
      /** Test null reference yields error */
      public void testOf_NullPointerException() {
        try {
          EquivalenceTester.of(null);
          fail("Should fail on null reference");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testTest_NoData() {
        tester.test();
      }
    
      public void testTest() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        this.tester = EquivalenceTester.of(equivalenceMock);
      }
    
      /** Test null reference yields error */
      public void testOf_NullPointerException() {
        try {
          EquivalenceTester.of(null);
          fail("Should fail on null reference");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testTest_NoData() {
        tester.test();
      }
    
      public void testTest() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

        future.cancel(true);
        try {
          getUnchecked(future);
          fail();
        } catch (CancellationException expected) {
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionChecked() {
        try {
          getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/VerifyTest.java

      public void testVerify_simple_failure() {
        try {
          verify(false);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
      public void testVerify_simpleMessage_success() {
        verify(true, "message");
      }
    
      public void testVerify_simpleMessage_failure() {
        try {
          verify(false, "message");
          fail();
        } catch (VerifyException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          }
        }
      }
    
      public void testStaticOneArgMethodsThatShouldFail() throws Exception {
        for (String methodName : STATIC_ONE_ARG_METHODS_SHOULD_FAIL) {
          Method method = OneArg.class.getMethod(methodName, String.class);
          boolean foundProblem = false;
          try {
            new NullPointerTester().testMethodParameter(new OneArg(), method, 0);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

                      + ".");
          return;
        }
        fail();
      }
    
      public void testEqualsOnReturnValues_bad() throws Exception {
        try {
          tester.forAllPublicStaticMethods(BadEqualsFactory.class).testEquals();
        } catch (AssertionFailedError expected) {
          return;
        }
        fail();
      }
    
      private static class BadEqualsFactory {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/DoubleMathTest.java

            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundNaNToIntAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          try {
            DoubleMath.roundToInt(Double.NaN, mode);
            fail("Expected ArithmeticException");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/JoinerTest.java

        checkResult(J, ITERABLE_123, "1-2-3");
    
        try {
          J.join(ITERABLE_NULL);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          J.join(ITERABLE_1_NULL_2);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
          J.join(ITERABLE_NULL.iterator());
          fail();
        } catch (NullPointerException expected) {
        }
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/IntMathTest.java

          try {
            IntMath.ceilingPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (int x : NEGATIVE_INTEGER_CANDIDATES) {
          try {
            IntMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
Back to top