Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for IllegalStateException (0.2 sec)

  1. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.sampleVariance());
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.sampleVariance());
        assertThrows(IllegalStateException.class, () -> ONE_VALUE_STATS.sampleVariance());
        assertThat(TWO_VALUES_STATS.sampleVariance())
            .isWithin(ALLOWED_ERROR)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.sampleVariance());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleVariance());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

          }
        }
        return suite;
      }
    
      /** Throw {@link IllegalStateException} if {@link #createTestSuite()} can't be called yet. */
      protected void checkCanCreate() {
        if (subjectGenerator == null) {
          throw new IllegalStateException("Call using() before createTestSuite().");
        }
        if (name == null) {
          throw new IllegalStateException("Call named() before createTestSuite().");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.sampleVariance());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleVariance());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ReflectionFreeAssertThrows.java

              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java

                String resource = "/org/apache/maven/model/pom-" + v + ".xml";
    
                InputStream is = getClass().getResourceAsStream(resource);
    
                if (is == null) {
                    throw new IllegalStateException("The super POM " + resource + " was not found"
                            + ", please verify the integrity of your Maven installation");
                }
    
                try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/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
    - 20.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

          }
        }
        return suite;
      }
    
      /** Throw {@link IllegalStateException} if {@link #createTestSuite()} can't be called yet. */
      protected void checkCanCreate() {
        if (subjectGenerator == null) {
          throw new IllegalStateException("Call using() before createTestSuite().");
        }
        if (name == null) {
          throw new IllegalStateException("Call named() before createTestSuite().");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top