- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 171 for TearDown (0.07 sec)
-
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;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 19:22:18 UTC 2023 - 1.8K bytes - Viewed (0) -
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;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 19:22:18 UTC 2023 - 1.8K bytes - Viewed (0) -
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 (lock) { stackCopy = Lists.newArrayList(stack); stack.clear(); } for (TearDown tearDown : stackCopy) { try { tearDown.tearDown(); } catch (Throwable t) { if (suppressThrows) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
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 (lock) { stackCopy = Lists.newArrayList(stack); stack.clear(); } for (TearDown tearDown : stackCopy) { try { tearDown.tearDown(); } catch (Throwable t) { if (suppressThrows) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
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 {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
@Override public byte[] getExpected(byte[] data) { return factory.getExpected(new String(data, UTF_8)).getBytes(UTF_8); } @Override public void tearDown() throws IOException { factory.tearDown(); } }; } public static CharSourceFactory asCharSourceFactory(final ByteSourceFactory factory) { checkNotNull(factory); return new CharSourceFactory() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0) -
android/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 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 19:22:18 UTC 2023 - 1.6K bytes - Viewed (0) -
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 {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 4.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
ExampleClassUnderTest.logger.addHandler(handler); ExampleClassUnderTest.logger.setUseParentHandlers(false); // optional stack.addTearDown( new TearDown() { @Override public void tearDown() throws Exception { ExampleClassUnderTest.logger.setUseParentHandlers(true); ExampleClassUnderTest.logger.removeHandler(handler); } }); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TearDownAccepter.java
* * <p>In JUnit3 language, that means during the {@link junit.framework.TestCase#tearDown()} step. */ void addTearDown(TearDown tearDown);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 19:22:18 UTC 2023 - 1.3K bytes - Viewed (0)