Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_invalid (0.07 sec)

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

      public void testValid() {
        for (String name : VALID_NAME) {
          InternetDomainName unused = InternetDomainName.from(name);
        }
      }
    
      public void testInvalid() {
        for (String name : INVALID_NAME) {
          assertThrows(IllegalArgumentException.class, () -> InternetDomainName.from(name));
        }
      }
    
      public void testPublicSuffix() {
        for (String name : PS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

        }
    
        private void assertContains(VersionConstraint c, String... versions) {
            assertContains(String.format("%s: %%s should be contained\n", c.toString()), c, true, versions);
        }
    
        @Test
        void testInvalid() {
            parseInvalid("[1,");
            parseInvalid("[1,2],(3,");
            parseInvalid("[1,2],3");
        }
    
        @Test
        void testSameUpperAndLowerBound() throws VersionParserException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top