mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-12-22 13:47:58 +01:00
Reset discoverer after directory based test
This commit is contained in:
parent
7a36c285b5
commit
21bdd04d80
2 changed files with 9 additions and 1 deletions
|
@ -39,9 +39,11 @@ public class Fetch implements Runnable {
|
|||
)
|
||||
boolean armor = false;
|
||||
|
||||
private static CertificateDiscoverer discoverer = new DefaultCertificateDiscoverer(
|
||||
public static final CertificateDiscoverer DEFAULT_DISCOVERER = new DefaultCertificateDiscoverer(
|
||||
new PGPainlessCertificateParser(), new HttpsUrlConnectionCertificateFetcher());
|
||||
|
||||
private static CertificateDiscoverer discoverer = DEFAULT_DISCOVERER;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
package pgp.wkd.cli.test_suite;
|
||||
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.DynamicTest;
|
||||
import org.junit.jupiter.api.TestFactory;
|
||||
|
@ -70,4 +71,9 @@ public class TestSuiteTestRunner {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
public static void reset() {
|
||||
Fetch.setCertificateDiscoverer(Fetch.DEFAULT_DISCOVERER);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue