diff options
Diffstat (limited to 'pkix/src/test/java/org/spongycastle/pkcs/test/BCTestSetup.java')
-rw-r--r-- | pkix/src/test/java/org/spongycastle/pkcs/test/BCTestSetup.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkix/src/test/java/org/spongycastle/pkcs/test/BCTestSetup.java b/pkix/src/test/java/org/spongycastle/pkcs/test/BCTestSetup.java new file mode 100644 index 00000000..c73d568f --- /dev/null +++ b/pkix/src/test/java/org/spongycastle/pkcs/test/BCTestSetup.java @@ -0,0 +1,26 @@ +// Copyright (c) 2005 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) +package org.spongycastle.pkcs.test; + +import java.security.Security; + +import junit.extensions.TestSetup; +import junit.framework.Test; + +class BCTestSetup + extends TestSetup +{ + public BCTestSetup(Test test) + { + super(test); + } + + protected void setUp() + { + Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider()); + } + + protected void tearDown() + { + Security.removeProvider("SC"); + } +} |