Skip to content

Commit

Permalink
chore: clean codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Dec 23, 2023
1 parent dead418 commit 4d5b856
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ public class TodoRepositoryTest {

@DynamicPropertySource
static void registerDynamicProperties(DynamicPropertyRegistry registry) {
registry.add("spring.r2dbc.url", () -> "r2dbc:oracle://"
String url = "r2dbc:oracle://"
+ oracleContainer.getHost() + ":" + oracleContainer.getFirstMappedPort()
+ "/" + oracleContainer.getDatabaseName());
+ "/" + oracleContainer.getDatabaseName();
log.debug("connecting to oracle db: {}", url);
registry.add("spring.r2dbc.url", () -> url);
registry.add("spring.r2dbc.username", () -> oracleContainer.getUsername());
registry.add("spring.r2dbc.password", () -> oracleContainer.getPassword());
}
Expand Down

0 comments on commit 4d5b856

Please sign in to comment.