summaryrefslogtreecommitdiffstats
path: root/x-net
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2009-10-23 15:31:41 -0700
committerJesse Wilson <jessewilson@google.com>2009-10-25 23:54:09 -0700
commitd37c804ccd11e38ee9221194866a152a4de6c8e9 (patch)
treebc77c3a7bb89889502b66bc7d144fbb338a83a62 /x-net
parent4453050e1be622cb1b5abcd00356f7a7fe40916b (diff)
downloadlibcore-d37c804ccd11e38ee9221194866a152a4de6c8e9.zip
libcore-d37c804ccd11e38ee9221194866a152a4de6c8e9.tar.gz
libcore-d37c804ccd11e38ee9221194866a152a4de6c8e9.tar.bz2
A new hygenic way for tests to clean up before or after execution.
This replaces PrefsTester and is more general purpose.
Diffstat (limited to 'x-net')
-rw-r--r--x-net/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/x-net/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java b/x-net/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java
index 0e3fee3..f659919 100644
--- a/x-net/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java
+++ b/x-net/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java
@@ -49,6 +49,7 @@ import dalvik.annotation.TestLevel;
import dalvik.annotation.TestTargetClass;
import dalvik.annotation.TestTargetNew;
import dalvik.annotation.TestTargets;
+import tests.util.TestEnvironment;
/**
@@ -65,6 +66,11 @@ public class SSLEngineTest extends TestCase {
junit.textui.TestRunner.run(SSLEngineTest.class);
}
+ @Override protected void setUp() throws Exception {
+ super.setUp();
+ TestEnvironment.reset();
+ }
+
/**
* Test for <code>SSLEngine()</code> constructor Assertion: creates
* SSLEngine object with null host and -1 port