Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 136 for assertThrows (0.2 sec)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

      }
    
      public void testForUriStringBad() {
        assertThrows(IllegalArgumentException.class, () -> InetAddresses.forUriString(""));
    
        assertThrows(
            IllegalArgumentException.class, () -> InetAddresses.forUriString("192.168.999.888"));
    
        assertThrows(
            IllegalArgumentException.class, () -> InetAddresses.forUriString("www.google.com"));
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalArgumentException.class, () -> builder.maximumWeight(-1));
      }
    
      @GwtIncompatible // maximumWeight
      public void testMaximumWeight_setTwice() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumWeight(16);
        assertThrows(IllegalStateException.class, () -> builder.maximumWeight(16));
    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)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

    import static com.google.common.graph.GraphConstants.ENDPOINTS_MISMATCH;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.TruthJUnit.assume;
    import static org.junit.Assert.assertThrows;
    import static org.junit.Assert.assertTrue;
    
    import java.util.Set;
    import org.junit.Test;
    
    /**
     * Abstract base class for testing directed {@link Graph} implementations defined in this package.
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString(""));
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7"));
        HashCode unused = HashCode.fromString("7f");
      }
    
      public void testFromStringFailsWithOddLengthInput() {
        assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8"));
      }
    
      public void testIntWriteBytesTo() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewParameterizedType_invalidTypeParameters() {
        assertThrows(
            IllegalArgumentException.class,
            () -> Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class));
      }
    
      public void testNewParameterizedType_primitiveTypeParameters() {
        assertThrows(
            IllegalArgumentException.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

        Files.write(ASCII, temp1, Charsets.UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp1, temp2));
        assertEquals(ASCII, Files.toString(temp1, Charsets.UTF_8));
      }
    
      public void testCopySameFile() throws IOException {
        File temp = createTempFile();
        Files.write(ASCII, temp, Charsets.UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/GraphsTest.java

        MutableNetwork<Integer, String> undirectedGraph = NetworkBuilder.undirected().build();
    
        assertThrows(
            IllegalArgumentException.class,
            () -> inducedSubgraph(undirectedGraph, ImmutableSet.of(N1)));
      }
    
      @Test
      public void copyOf_nullArgument() {
        assertThrows(NullPointerException.class, () -> copyOf((Graph<?>) null));
      }
    
      @Test
      public void copyOf_directedGraph() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

          }
        }
      }
    
      public void testPreconditions() {
        assertThrows(
            IllegalArgumentException.class,
            () -> BloomFilter.create(Funnels.unencodedCharsFunnel(), -1));
        assertThrows(
            IllegalArgumentException.class,
            () -> BloomFilter.create(Funnels.unencodedCharsFunnel(), -1, 0.03));
        assertThrows(
            IllegalArgumentException.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            assertThrows(IllegalStateException.class, n1AdjacentNodes::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Predecessors::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Successors::size));
        assertNodeRemovedFromGraphErrorMessage(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            assertThrows(IllegalStateException.class, n1AdjacentNodes::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Predecessors::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Successors::size));
        assertNodeRemovedFromGraphErrorMessage(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
Back to top