Skip to content

Commit

Permalink
solve some sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Nov 27, 2024
1 parent f3e5121 commit 82402f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;


import reactor.core.publisher.Hooks;

@SpringBootApplication
Expand All @@ -16,4 +15,4 @@ public static void main(String[] args) {
SpringApplication.run(RtpActivatorApplication.class, args);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
@EnableReactiveCosmosRepositories("it.gov.pagopa.rtp.activator.repository")
public class CosmosDBConfig extends AbstractCosmosConfiguration {

@Autowired
private CosmosPropertiesConfig cosmosPropertiesConfig;

public CosmosDBConfig(CosmosPropertiesConfig cosmosPropertiesConfig){
this.cosmosPropertiesConfig = cosmosPropertiesConfig;
}

@Override
protected String getDatabaseName() {
return cosmosPropertiesConfig.getDbName();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package it.gov.pagopa.rtp.activator;

import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.junit.jupiter.SpringExtension;
Expand All @@ -9,7 +11,7 @@ class RtpActivatorApplicationTests {

@Test
void contextLoads() {
//To expand
}
assertNotNull(new RtpActivatorApplication());
}

}

0 comments on commit 82402f3

Please sign in to comment.