From 955e9f734b10687846b953ba9267b8138ebaa73d Mon Sep 17 00:00:00 2001 From: DOEKYONG Date: Wed, 1 Nov 2023 12:26:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=EC=86=8C=EB=AC=B8=EC=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/java/com/codesquad/controlG/DatabaseCleanup.java | 2 +- .../java/com/codesquad/controlG/annotation/AcceptanceTest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/be/controlG/src/test/java/com/codesquad/controlG/DatabaseCleanup.java b/be/controlG/src/test/java/com/codesquad/controlG/DatabaseCleanup.java index 9b9a807..112807a 100644 --- a/be/controlG/src/test/java/com/codesquad/controlG/DatabaseCleanup.java +++ b/be/controlG/src/test/java/com/codesquad/controlG/DatabaseCleanup.java @@ -25,7 +25,7 @@ public class DatabaseCleanup implements InitializingBean { public void afterPropertiesSet() { try { DatabaseMetaData metaData = dataSource.getConnection().getMetaData(); - ResultSet tables = metaData.getTables("controlG", null, null, new String[]{"TABLE"}); + ResultSet tables = metaData.getTables("controlg", null, null, new String[]{"TABLE"}); while (tables.next()) { String tableName = tables.getString("TABLE_NAME"); tableNames.add(tableName); diff --git a/be/controlG/src/test/java/com/codesquad/controlG/annotation/AcceptanceTest.java b/be/controlG/src/test/java/com/codesquad/controlG/annotation/AcceptanceTest.java index 738f416..e6a8891 100644 --- a/be/controlG/src/test/java/com/codesquad/controlG/annotation/AcceptanceTest.java +++ b/be/controlG/src/test/java/com/codesquad/controlG/annotation/AcceptanceTest.java @@ -14,5 +14,6 @@ @Target(ElementType.TYPE) @ExtendWith(DatabaseInitializerExtension.class) @SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT) +@ActiveProfiles("test") public @interface AcceptanceTest { }