Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve Test coverage of pmproducer
[nonrtric/plt/ranpm.git]
/
pmproducer
/
src
/
main
/
java
/
org
/
oran
/
pmproducer
/
datastore
/
S3ObjectStore.java
diff --git
a/pmproducer/src/main/java/org/oran/pmproducer/datastore/S3ObjectStore.java
b/pmproducer/src/main/java/org/oran/pmproducer/datastore/S3ObjectStore.java
index
be30969
..
fd56d62
100644
(file)
--- a/
pmproducer/src/main/java/org/oran/pmproducer/datastore/S3ObjectStore.java
+++ b/
pmproducer/src/main/java/org/oran/pmproducer/datastore/S3ObjectStore.java
@@
-67,6
+67,12
@@
class S3ObjectStore implements DataStore {
getS3AsynchClient(applicationConfig);
}
getS3AsynchClient(applicationConfig);
}
+ @SuppressWarnings({"java:S3010", "java:S2209"})
+ public S3ObjectStore(ApplicationConfig applicationConfig, S3AsyncClient s3AsynchClient) {
+ this.applicationConfig = applicationConfig;
+ this.s3AsynchClient = s3AsynchClient;
+ }
+
private static synchronized S3AsyncClient getS3AsynchClient(ApplicationConfig applicationConfig) {
if (applicationConfig.isS3Enabled() && s3AsynchClient == null) {
s3AsynchClient = getS3AsyncClientBuilder(applicationConfig).build();
private static synchronized S3AsyncClient getS3AsynchClient(ApplicationConfig applicationConfig) {
if (applicationConfig.isS3Enabled() && s3AsynchClient == null) {
s3AsynchClient = getS3AsyncClientBuilder(applicationConfig).build();