Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 456 for assertThrows (0.15 sec)

  1. guava-tests/test/com/google/common/base/EnumsTest.java

    import static com.google.common.base.StandardSystemProperty.PATH_SEPARATOR;
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.AbstractCollectionTester;
    import com.google.common.collect.testing.IteratorFeature;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionFeature;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

    import static java.util.concurrent.TimeUnit.MINUTES;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import com.google.common.base.Suppliers;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

            .isEqualTo(new boolean[] {true, false, false});
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Booleans.join(",", EMPTY)).isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UNNECESSARY;
    import static java.math.RoundingMode.UP;
    import static java.math.RoundingMode.values;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.math.BigDecimal;
    import java.math.MathContext;
    import java.math.RoundingMode;
    import java.util.EnumMap;
    import java.util.EnumSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Range;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(Currency.DOLLAR, bimap.inverse().get(Country.CANADA));
    
        /* Map must have at least one entry if not an EnumBiMap. */
        assertThrows(
            IllegalArgumentException.class,
            () -> EnumBiMap.create(Collections.<Currency, Country>emptyMap()));
        assertThrows(
            IllegalArgumentException.class,
            () -> EnumBiMap.create(EnumHashBiMap.<Currency, Country>create(Currency.class)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      public void testNewLinkedBlockingDequeCapacity() {
        assertThrows(IllegalArgumentException.class, () -> Queues.newLinkedBlockingDeque(0));
        assertEquals(1, Queues.newLinkedBlockingDeque(1).remainingCapacity());
        assertEquals(11, Queues.newLinkedBlockingDeque(11).remainingCapacity());
      }
    
      public void testNewLinkedBlockingQueueCapacity() {
        assertThrows(IllegalArgumentException.class, () -> Queues.newLinkedBlockingQueue(0));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top