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 d366f89 commit f65c6d1
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull;

@Testcontainers
//@Testcontainers
@SpringBootTest
@Slf4j
public class PostRepositoryTest {
Expand All @@ -29,11 +29,12 @@ static class TestConfig {
}

// see: https://java.testcontainers.org/modules/databases/oraclexe/
@Container
static OracleContainer oracle = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart")
.withDatabaseName("blogdb")
.withUsername("testUser")
.withPassword("testPassword");
// @Container
// static OracleContainer oracle = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart")
// .withExposedPorts(1521)
// .withDatabaseName("blogdb")
// .withUsername("testUser")
// .withPassword("testPassword");

@Autowired
PostRepository posts;
Expand Down

0 comments on commit f65c6d1

Please sign in to comment.