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 f65c6d1 commit 2aadff2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hibernate-reactive-mutiny-oracle/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version: '3.7' # specify docker-compose version
services:
oracle:
# see https://www.oracle.com/database/technologies/appdev/xe.html
image: gvenzl/oracle-xe:21.3.0-slim
image: gvenzl/oracle-free:23-slim
ports:
- "1521:1521"
restart: always
environment:
ORACLE_PASSWORD: password
ORACLE_PASSWORD: sysPassword
ORACLE_DATABASE: blogdb
APP_USER: testUser
APP_USER_PASSWORD: testPassword
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CREATE SEQUENCE todos_seq START WITH 1;

-- 23c supports `if not exists`
CREATE TABLE IF NOT EXISTS todos
(
id NUMBER DEFAULT todos_seq.nextval NOT NULL,
id NUMBER(10) DEFAULT todos_seq.nextval NOT NULL,
title VARCHAR2(200)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TodoRepositoryTest {

// see: https://java.testcontainers.org/modules/databases/oraclexe/
@Container
static OracleContainer oracleContainer = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart")
static OracleContainer oracleContainer = new OracleContainer("gvenzl/oracle-free:23-slim-faststart")
.withDatabaseName("blogdb")
.withUsername("testUser")
.withPassword("testPassword");
Expand Down Expand Up @@ -56,7 +56,7 @@ public void setup() {
}

@Test
public void testPostRepositoryExisted() {
public void testTodosRepositoryExisted() {
assertNotNull(todos);
}

Expand Down

0 comments on commit 2aadff2

Please sign in to comment.