Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 335 for IllegalStateException (0.22 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
                  }
                  return 25;
                }
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = Executors.newCachedThreadPool();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
                  }
                  return 25;
                }
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = Executors.newCachedThreadPool();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertNodeRemovedFromGraphErrorMessage(
            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
    - 16.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/PreconditionsTest.java

        } catch (IllegalStateException expected) {
        }
      }
    
      public void testCheckState_simpleMessage_success() {
        Preconditions.checkState(true, IGNORE_ME);
      }
    
      public void testCheckState_simpleMessage_failure() {
        try {
          Preconditions.checkState(false, new Message());
          fail("no exception thrown");
        } catch (IllegalStateException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/PairedStats.java

       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
       * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}.
       *
       * @throws IllegalStateException if the dataset is empty
       */
      public double populationCovariance() {
        checkState(count() != 0);
        return sumOfProductsOfDeltas / count();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

              executor);
          fail();
        } catch (IllegalStateException expected2) {
        }
        try {
          ClosingFuture.whenAllComplete(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected1) {
        }
        try {
          ClosingFuture.whenAllSucceed(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

                  }
                },
                executor);
        closingFuture.finishToValueAndCloser(
            new NoOpValueAndCloserConsumer<>(), finishToValueAndCloserExecutor);
        assertThrows(
            IllegalStateException.class,
            () ->
                closingFuture.finishToValueAndCloser(
                    new NoOpValueAndCloserConsumer<>(), finishToValueAndCloserExecutor));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/HostAndPortTest.java

          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
        assertEquals(expectHost, hp.getHost());
    
        // Check the post-withDefaultPort() instance (if any).
        if (!badDefaultPort) {
          try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertNodeRemovedFromGraphErrorMessage(
            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
    - 16.6K bytes
    - Viewed (0)
  10. 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().");
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top