Skip to content

Commit

Permalink
Use Table#create instead of manually preparing tables in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kawamuray committed Nov 25, 2020
1 parent 587a52b commit 9429e72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/kmql/table/ConfigsTableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public void prepareAllEnums() throws Exception {
doReturn(result).when(adminClient).describeConfigs(any());

try (Connection connection = SqlUtils.connection()) {
try (Statement stmt = connection.createStatement()) {
stmt.execute("CREATE TABLE brokers (id INT)");
stmt.execute("CREATE TABLE replicas (topic VARCHAR(255))");
}
// Prepare empty dependency tables
new BrokersTable().create(connection);
new ReplicasTable().create(connection);

table.create(connection);
table.prepare(connection, adminClient);

Expand Down

0 comments on commit 9429e72

Please sign in to comment.