Skip to content

Commit 9a194e9

Browse files
committed
wip
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 02103d0 commit 9a194e9

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/performance/PerformanceTestResult.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616
package io.javaoperatorsdk.operator.baseapi.performance;
1717

18-
import com.fasterxml.jackson.annotation.JsonAnyGetter;
19-
import com.fasterxml.jackson.annotation.JsonAnySetter;
20-
2118
import java.util.HashMap;
2219
import java.util.List;
2320
import java.util.Map;
2421

22+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
23+
import com.fasterxml.jackson.annotation.JsonAnySetter;
24+
2525
public class PerformanceTestResult {
2626

2727
private final Map<String, Object> additionalProperties = new HashMap<>();

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/performance/SimplePerformanceTestIT.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void simpleNaivePerformanceTest() {
9090
private void saveResults(long duration) {
9191
try {
9292
var result = new PerformanceTestResult();
93-
getRunProperties().forEach((k,v)->result.addProperty(k,v));
93+
getRunProperties().forEach((k, v) -> result.addProperty(k, v));
9494
var summary = new PerformanceTestSummary();
9595
result.setSummaries(List.of(summary));
9696
summary.setName("Naive performance test");
@@ -104,19 +104,19 @@ private void saveResults(long duration) {
104104
}
105105
}
106106

107-
private Map<String, Object> getRunProperties() {
108-
try {
109-
File runProperties = new File("../run-properties.json");
110-
if (runProperties.exists()) {
111-
return objectMapper.readValue(runProperties, HashMap.class);
112-
} else {
113-
log.warn("No run properties file found");
114-
return Map.of();
115-
}
116-
} catch (IOException e) {
117-
throw new RuntimeException(e);
118-
}
107+
private Map<String, Object> getRunProperties() {
108+
try {
109+
File runProperties = new File("../run-properties.json");
110+
if (runProperties.exists()) {
111+
return objectMapper.readValue(runProperties, HashMap.class);
112+
} else {
113+
log.warn("No run properties file found");
114+
return Map.of();
115+
}
116+
} catch (IOException e) {
117+
throw new RuntimeException(e);
119118
}
119+
}
120120

121121
private void createResources(int startIndex, int number, String value) {
122122
try {

0 commit comments

Comments
 (0)