Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 277 for IllegalStateException (0.17 sec)

  1. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      private static EdgeType oppositeType(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return EdgeType.DIRECTED;
          case DIRECTED:
            return EdgeType.UNDIRECTED;
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

                throw new IOException("Can't create " + file);
            }
        }
    
        @Test
        void testRootDirectoryWithNull() {
            context.setProjectDirectory(null);
    
            IllegalStateException e = assertThrows(
                    IllegalStateException.class,
                    () -> assertActivation(false, newExistsProfile("${project.rootDirectory}"), context));
            assertEquals(RootLocator.UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE, e.getMessage());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertFalse(range.hasLowerBound());
        try {
          range.lowerEndpoint();
          fail();
        } catch (IllegalStateException expected) {
        }
        try {
          range.lowerBoundType();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      private static void assertUnboundedAbove(Range<Integer> range) {
        assertFalse(range.hasUpperBound());
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

        // System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true")
        // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true")
    
        // IllegalStateException: Cannot resume session and session creation is disabled
        platform.assumeNotBouncyCastle()
      }
    
      @ParameterizedTest(name = "{displayName}({arguments})")
      @ValueSource(strings = ["TLSv1.2", "TLSv1.3"])
      @Flaky
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java

                RepositorySystem repositorySystem;
                try {
                    repositorySystem = container.lookup(RepositorySystem.class);
                } catch (ComponentLookupException e) {
                    throw new IllegalStateException("Unable to lookup " + RepositorySystem.class.getName());
                }
    
                if (mirrors) {
                    repositorySystem.injectMirror(session, repositories);
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java

      }
    
      @Override
      public Set<Feature<? super Collection>> getImpliedFeatures() {
        return implied;
      }
    
      public int getNumElements() {
        if (numElements == null) {
          throw new IllegalStateException(
              "A compound CollectionSize doesn't specify a number of elements.");
        }
        return numElements;
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java

              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IncomparableValueException.class, e -> e instanceof IncomparableValueException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        static final PermittedMetaException UOE_OR_ISE =
            new PermittedMetaException("UnsupportedOperationException or IllegalStateException") {
              @Override
              boolean isPermitted(Exception exception) {
                return exception instanceof UnsupportedOperationException
                    || exception instanceof IllegalStateException;
              }
            };
        static final PermittedMetaException UOE =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/Stats.java

       *
       * <p>If you only want to calculate the mean, use {@link #meanOf} instead of creating a {@link
       * Stats} instance.
       *
       * @throws IllegalStateException if the dataset is empty
       */
      public double mean() {
        checkState(count != 0);
        return mean;
      }
    
      /**
       * Returns the sum of the values.
       *
       * <h3>Non-finite values</h3>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

                mkdirsAndWriteText(
                    """
                class FlakyTest {
                    @org.junit.jupiter.api.Test
                    public void test() {
                        ${if (fail) "throw new IllegalStateException();" else ""}
                    }
                }
                    """.trimIndent()
                )
            }
    
            projectDir.resolve("failed-test-with-leftover/src/test/java/FlakyTest.java").writeFlakyTest(true)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 14 12:35:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top