Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 843 for fail (0.14 sec)

  1. 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.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        try {
                          peeker.getDone(input2Failed);
                          fail("Peeker.getDone() should fail for failed inputs");
                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
                          fail("Peeker should not be able to peek into non-input ClosingFuture.");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

        try {
          getList().addAll(0, null);
          fail("addAll(n, null) should throw");
        } catch (NullPointerException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_negative() {
        try {
          getList().addAll(-1, MinimalCollection.of(e3()));
          fail("addAll(-1, e) should throw");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        expectMissing(e0());
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      @CollectionSize.Require(SEVERAL)
      public void testRemovePresentConcurrentWithIteration() {
        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.remove(e0()));
          iterator.next();
          fail("Expected ConcurrentModificationException");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        Iterator<Object> empty = new EmptyAbstractSequentialIterator<>();
        assertFalse(empty.hasNext());
        try {
          empty.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
        try {
          empty.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBroken() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        try {
          builder.initialCapacity(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testInitialCapacity_setTwice() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().initialCapacity(16);
        try {
          // even to the same value is not allowed
          builder.initialCapacity(16);
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

        try {
          getDone(immediateFailedFuture(failureCause));
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isEqualTo(failureCause);
        }
      }
    
      public void testCancelled() throws ExecutionException {
        try {
          getDone(immediateCancelledFuture());
          fail();
        } catch (CancellationException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/WatchTest.java

     */
    package jcifs.tests;
    
    
    import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.io.IOException;
    import java.io.OutputStream;
    import java.net.MalformedURLException;
    import java.net.UnknownHostException;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, FAILS_FAST_ON_CONCURRENT_MODIFICATION})
      @CollectionSize.Require(SEVERAL)
      public void testRemoveAllSomePresentConcurrentWithIteration() {
        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.removeAll(MinimalCollection.of(e0(), e3())));
          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
    - 7.7K bytes
    - Viewed (0)
  10. maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

        public static final String UPDATE_POLICY_INTERVAL = "interval";
    
        public static final String CHECKSUM_POLICY_FAIL = "fail";
    
        public static final String CHECKSUM_POLICY_WARN = "warn";
    
        public static final String CHECKSUM_POLICY_IGNORE = "ignore";
    
        public static final String DEFAULT_CHECKSUM_POLICY = CHECKSUM_POLICY_FAIL;
    
        private boolean enabled;
    
        private String updatePolicy;
    
        private String checksumPolicy;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top