Skip to content

Commit 773cb34

Browse files
committed
use s3 maven package as test implementation
1 parent 29ffa0b commit 773cb34

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ dependencies {
2323
implementation 'org.jetbrains:annotations:26.0.1'
2424
implementation 'io.github.cdimascio:dotenv-java:3.1.0'
2525
implementation 'com.ibm.async:asyncutil:0.1.0'
26-
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.780'
2726
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
2827
implementation 'io.github.cdimascio:dotenv-java:2.2.0'
2928
testImplementation 'org.testng:testng:7.10.2'
3029
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
3130
testImplementation 'org.mockito:mockito-core:5.14.2'
3231
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.3'
32+
testImplementation 'com.amazonaws:aws-java-sdk-s3:1.12.780'
3333
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
3434
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.4'
3535

java/src/test/java/de/gdata/test/integration/ScanS3Bucket.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public static void main(String[] args) throws Exception {
4141
String S3_REGION = dotenv.get("S3_REGION");
4242

4343
// Build VaaS
44-
long startTimeAll = System.currentTimeMillis();
4544
ClientCredentialsGrantAuthenticator authenticator = new ClientCredentialsGrantAuthenticator(CLIENT_ID, CLIENT_SECRET, new URI(TOKEN_URL));
4645
VaasConfig vaasConfig = new VaasConfig(10000, false, false, new URI(VAAS_URL));
4746
Vaas vaas = new Vaas(vaasConfig, authenticator);
@@ -119,7 +118,6 @@ public void refresh() {
119118
ObjectMapper objectMapper = new ObjectMapper();
120119
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
121120
objectMapper.writeValue(new File("results-" + S3_BUCKET + ".json"), results);
122-
long endTimeAll = System.currentTimeMillis();
123121

124122
System.out.println("Results written to results-" + S3_BUCKET + ".json");
125123
}

0 commit comments

Comments
 (0)