- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for runTearDown (0.04 sec)
-
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
stack.addTearDown(tearDownTwo); assertEquals(false, tearDownOne.ran); assertEquals(false, tearDownTwo.ran); try { stack.runTearDown(); fail("runTearDown should have thrown an exception"); } catch (RuntimeException expected) { assertThat(expected).hasMessageThat().isEqualTo("two"); assertThat(getOnlyElement(asList(expected.getSuppressed())))
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 01 13:14:50 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
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 { static final Logger logger = Logger.getLogger(ExampleClassUnderTest.class.getName());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TearDownStack.java
@Override public final void addTearDown(TearDown tearDown) { synchronized (lock) { stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { Throwable exception = null; List<TearDown> stackCopy; synchronized (lock) { stackCopy = new ArrayList<>(stack); stack.clear(); } for (TearDown tearDown : stackCopy) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 01 13:14:50 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/TearDownStack.java
@Override public final void addTearDown(TearDown tearDown) { synchronized (lock) { stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { Throwable exception = null; List<TearDown> stackCopy; synchronized (lock) { stackCopy = new ArrayList<>(stack); stack.clear(); } for (TearDown tearDown : stackCopy) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 01 13:14:50 UTC 2025 - 2.7K bytes - Viewed (0)