Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 508 for fail (0.2 sec)

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

        } catch (PermittedMetaException e) {
          referenceException = e;
        } catch (UnknownElementException e) {
          Helpers.fail(e, e.getMessage());
        }
    
        if (referenceException == null) {
          if (targetException != null) {
            Helpers.fail(targetException, "Target threw exception when reference did not");
          }
    
          /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  2. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

            Callables.asAsyncCallable(callable, MoreExecutors.newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        try {
          future.get();
          fail("Expected exception to be thrown");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expected);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

      }
    
      public void testCreateWithInvalidSizes() {
        try {
          HashBasedTable.create(100, -5);
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HashBasedTable.create(-5, 20);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateCopy() {
        Table<String, Integer, Character> original =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        Builder<String, Integer> builder = new Builder<>();
        try {
          builder.put(Maps.immutableEntry("one", (Integer) null));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.put(Maps.immutableEntry((String) null, 1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      private static class StringHolder {
        @Nullable String string;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

          InternetDomainName.from("com").parent();
          fail("'com' should throw ISE on .parent() call");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testChild() {
        InternetDomainName domain = InternetDomainName.from("foo.com");
    
        assertEquals("www.foo.com", domain.child("www").toString());
    
        try {
          domain.child("www.");
          fail("www..google.com should have been invalid");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
          EnumMultiset.create(empty);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateEmptyWithClass() {
        Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          diff1.entriesInCommon().put(7, "x");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          diff1.entriesOnlyOnLeft().put(7, "x");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          diff1.entriesOnlyOnRight().put(7, "x");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        if (spliterator.estimateSize() > originalSize) {
          fail(
              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
          if (trySplit.estimateSize() > originalSize) {
            fail(
                format(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      /**
       * Just like fail(reason), but additionally recording (using threadRecordFailure) any
       * AssertionFailedError thrown, so that the current testcase will fail.
       */
      public void threadFail(String reason) {
        try {
          fail(reason);
        } catch (AssertionFailedError t) {
          threadRecordFailure(t);
          fail(reason);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top