Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 508 for fail (0.12 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Set<Set<Integer>> unused = powerSet(ContiguousSet.closed(0, Integer.MAX_VALUE / 2));
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          powerSet(singleton(null));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. 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 Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

      public void testRemove() {
        Iterator<String> iterator = create();
    
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        try {
          iterator.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @SuppressWarnings("DoNotCall")
      public void testAdd() {
        ListIterator<String> iterator = create();
    
        assertTrue(iterator.hasNext());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        try {
          builder.put(null, 1);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, Arrays.asList(1, 2, 3));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, 1, 2, 3);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        try {
          builder.put(null, 1);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, Arrays.asList(1, 2, 3));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, 1, 2, 3);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        }
    
        @Override
        protected void doStop() {
          fail();
        }
      }
    
      private static class RunFailingService extends AbstractService {
        @Override
        protected void doStart() {
          notifyStarted();
          notifyFailed(EXCEPTION);
        }
    
        @Override
        protected void doStop() {
          fail();
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        try {
          iia.get(-1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          iia.get(3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
    
        iia = iia.subArray(1, 2);
        try {
          iia.get(-1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top