- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 198 for tearDown (0.14 seconds)
-
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
public void testSingleTearDown() throws Exception { TearDownStack stack = buildTearDownStack(); 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 {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/TearDownStackTest.java
public void testSingleTearDown() throws Exception { TearDownStack stack = buildTearDownStack(); 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 {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java
} } public void testLifecycle() { boolean[] setUp = {false}; Runnable setUpRunnable = () -> setUp[0] = true; boolean[] tearDown = {false}; Runnable tearDownRunnable = () -> tearDown[0] = true; MyTestSuiteBuilder builder = new MyTestSuiteBuilder(); Test test = builder .usingGenerator("yam") .named("yam")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 2.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
return self(); } public Runnable getSetUp() { return setUp; } @CanIgnoreReturnValue public B withTearDown(Runnable tearDown) { this.tearDown = tearDown; return self(); } public Runnable getTearDown() { return tearDown; } // Features private final Set<Feature<?>> features = new LinkedHashSet<>(); /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 10.4K bytes - Click Count (0) -
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() { AtomicBoolean setUpRan = new AtomicBoolean(); Runnable setUp = () -> assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true)); Runnable tearDown = () -> assertTrue("setUp should have run", setUpRan.getAndSet(false));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 11.2K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java
} } public void testLifecycle() { boolean[] setUp = {false}; Runnable setUpRunnable = () -> setUp[0] = true; boolean[] tearDown = {false}; Runnable tearDownRunnable = () -> tearDown[0] = true; MyTestSuiteBuilder builder = new MyTestSuiteBuilder(); Test test = builder .usingGenerator("yam") .named("yam")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 2.1K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
} } @Override public final void runBare() throws Throwable { try { setUp(); runTest(); } finally { tearDown(); } } @Override protected void tearDown() { stack.runTearDown(); } static final Exception EXCEPTION = new Exception(); static final class ExampleClassUnderTest {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 2.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
return self(); } public Runnable getSetUp() { return setUp; } @CanIgnoreReturnValue public B withTearDown(Runnable tearDown) { this.tearDown = tearDown; return self(); } public Runnable getTearDown() { return tearDown; } // Features private final Set<Feature<?>> features = new LinkedHashSet<>(); /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 10.4K bytes - Click Count (0) -
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() { AtomicBoolean setUpRan = new AtomicBoolean(); Runnable setUp = () -> assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true)); Runnable tearDown = () -> assertTrue("setUp should have run", setUpRan.getAndSet(false));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 11.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
* #threadUnexpectedException} or {@link #threadRecordFailure} (which is called by {@link * CheckedRunnable} and {@link CheckedCallable}). * <li>If you override {@link #tearDown}, make sure to invoke {@code super.tearDown} within it. * This method is used to clear and check for thread assertion failures. * <li>All threads generated must be joined inside each test case method (or {@code fail} to doCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.8K bytes - Click Count (0)