File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/test/java/uk/nhs/adaptors/gp2gp/common/configuration Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ tasks.withType(Test) {
133133}
134134
135135check. dependsOn integrationTest
136- integrationTest. mustRunAfter test
137136
138137spotbugsTest. enabled = false
139138spotbugsIntegrationTest. enabled = false
Original file line number Diff line number Diff line change 33import io .findify .s3mock .S3Mock ;
44import org .junit .jupiter .api .AfterAll ;
55import org .junit .jupiter .api .BeforeAll ;
6- import org .junit .jupiter .api .BeforeEach ;
76import org .junit .jupiter .api .Test ;
87import software .amazon .awssdk .auth .credentials .AwsBasicCredentials ;
98import software .amazon .awssdk .auth .credentials .StaticCredentialsProvider ;
@@ -24,7 +23,7 @@ class CustomTrustStoreTest {
2423 private static final String BUCKET_NAME = "test-bucket" ;
2524 private static final String TRUSTSTORE_PATH = "test.jks" ;
2625 private static final String TRUSTSTORE_PASSWORD = "password" ;
27- private CustomTrustStore customTrustStore ;
26+ private static CustomTrustStore customTrustStore ;
2827
2928 @ BeforeAll
3029 static void setUp () {
@@ -47,14 +46,15 @@ static void setUp() {
4746 software .amazon .awssdk .core .sync .RequestBody .fromFile (trustStoreFile ));
4847 }
4948
50- @ BeforeEach
51- void prepare () {
49+ @ BeforeAll
50+ static void setup () {
5251 customTrustStore = new CustomTrustStore (s3Client );
5352 }
5453
5554 @ AfterAll
5655 static void tearDown () {
5756 s3Mock .shutdown ();
57+ customTrustStore = null ;
5858 }
5959
6060 @ Test
You can’t perform that action at this time.
0 commit comments