Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 446 for amatch (0.24 sec)

  1. 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) {
        }
      }
    
      public void testJoin() {
    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)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

      public void testPutAllNullValueNullLast_unsupported() {
        int size = getNumElements();
    
        try {
          multimap().putAll(k3(), Lists.newArrayList(v3(), null));
          fail();
        } catch (NullPointerException expected) {
        }
    
        Collection<V> values = multimap().get(k3());
        if (values.size() == 0) {
          expectUnchanged();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 7.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals(
            "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents());
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents());
    
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.unregister(catcher2);
        bus.post(EVENT);
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals(
            "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents());
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents());
    
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.unregister(catcher2);
        bus.post(EVENT);
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      // put() and putAll() aren't supported.
      @Override
      public void testPut() {
        try {
          table.put("foo", 1, 'a');
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        assertSize(0);
      }
    
      @Override
      public void testPutAllTable() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      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)
  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) {
        }
      }
    
      public void testIndexOf() {
    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/CollectionContainsAllTester.java

      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
          assertFalse(collection.containsAll(MinimalCollection.of((E) null)));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullAllowed() {
        assertFalse(collection.containsAll(MinimalCollection.of((E) null)));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        assertEquals(false, tearDownTwo.ran);
    
        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (ClusterException expected) {
          assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two");
        } catch (RuntimeException e) {
          throw new RuntimeException(
              "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e);
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        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
      public void testRenaming() throws Exception {
    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)
Back to top