Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for tearDown (0.23 sec)

  1. android/guava-testlib/src/com/google/common/testing/TearDown.java

       * this is subject to change. Also, {@code junit4.TearDownTestCase} will.
       *
       * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrown
       *     will not interfere with other TearDown operations.
       */
      void tearDown() throws Exception;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/TearDown.java

       * this is subject to change. Also, {@code junit4.TearDownTestCase} will.
       *
       * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrown
       *     will not interfere with other TearDown operations.
       */
      void tearDown() throws Exception;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        final TearDownStack stack = buildTearDownStack();
    
        final SimpleTearDown tearDown = new SimpleTearDown();
        stack.addTearDown(tearDown);
    
        assertEquals(false, tearDown.ran);
    
        stack.runTearDown();
    
        assertEquals("tearDown should have run", true, tearDown.ran);
      }
    
      public void testMultipleTearDownsHappenInOrder() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/SloppyTearDown.java

    import java.util.logging.Logger;
    
    /**
     * Simple utility for when you want to create a {@link TearDown} that may throw an exception but
     * should not fail a test when it does. (The behavior of a {@code TearDown} that throws an exception
     * varies; see its documentation for details.) Use it just like a {@code TearDown}, except override
     * {@link #sloppyTearDown()} instead.
     *
     * @author Luiz-Otavio Zorzella
     * @since 10.0
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        tearDownStack.addTearDown(
            new TearDown() {
              @Override
              public void tearDown() {
                executor.shutdownNow();
              }
            });
        sleeper = new SleepingRunnable(1000);
        delayedFuture = executor.submit(sleeper, true);
    
        tearDownStack.addTearDown(
            new TearDown() {
              @Override
              public void tearDown() {
                Thread.interrupted();
              }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

              @Override
              public void run() {
                setUp[0] = true;
              }
            };
    
        boolean[] tearDown = {false};
        Runnable tearDownRunnable =
            new Runnable() {
              @Override
              public void run() {
                tearDown[0] = true;
              }
            };
    
        MyTestSuiteBuilder builder = new MyTestSuiteBuilder();
        Test test =
            builder
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          }
        }
      }
    
      /** Verifies that {@code setUp} and {@code tearDown} are called in all map test cases. */
      private static Test testsForSetUpTearDown() {
        final AtomicBoolean setUpRan = new AtomicBoolean();
        Runnable setUp =
            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          }
        }
      }
    
      /** Verifies that {@code setUp} and {@code tearDown} are called in all map test cases. */
      private static Test testsForSetUpTearDown() {
        final AtomicBoolean setUpRan = new AtomicBoolean();
        Runnable setUp =
            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/TearDownStack.java

        }
      }
    
      /** Causes teardown to execute. */
      public final void runTearDown() {
        List<Throwable> exceptions = new ArrayList<>();
        List<TearDown> stackCopy;
        synchronized (stack) {
          stackCopy = Lists.newArrayList(stack);
          stack.clear();
        }
        for (TearDown tearDown : stackCopy) {
          try {
            tearDown.tearDown();
          } catch (Throwable t) {
            if (suppressThrows) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        final TearDownStack stack = buildTearDownStack();
    
        final SimpleTearDown tearDown = new SimpleTearDown();
        stack.addTearDown(tearDown);
    
        assertEquals(false, tearDown.ran);
    
        stack.runTearDown();
    
        assertEquals("tearDown should have run", true, tearDown.ran);
      }
    
      public void testMultipleTearDownsHappenInOrder() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
Back to top