From 4d5b8562d34fc12241ee0e8ff54678828c22d94f Mon Sep 17 00:00:00 2001 From: hantsy Date: Sat, 23 Dec 2023 12:50:29 +0800 Subject: [PATCH] chore: clean codes --- .../src/test/java/com/example/demo/TodoRepositoryTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hibernate-reactive-mutiny-oracle/src/test/java/com/example/demo/TodoRepositoryTest.java b/hibernate-reactive-mutiny-oracle/src/test/java/com/example/demo/TodoRepositoryTest.java index 3108859..6f6cd8e 100644 --- a/hibernate-reactive-mutiny-oracle/src/test/java/com/example/demo/TodoRepositoryTest.java +++ b/hibernate-reactive-mutiny-oracle/src/test/java/com/example/demo/TodoRepositoryTest.java @@ -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()); }