Skip to content

Commit

Permalink
apply spotless (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliVM authored Nov 11, 2024
1 parent 51c80ca commit 4d40630
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ public void testFilterInsertion() {
CategoryTable tableImpl = new CategoryTableImpl(ctx, table, 0L, "192.168.1.1");
Assertions.assertDoesNotThrow(tableImpl::create);
Assertions.assertDoesNotThrow(() -> new TableFilters(ctx, table, 0L, "192.168.1.1").asBatch().execute());
ResultSet result = Assertions.assertDoesNotThrow(() -> conn.prepareStatement("SELECT * FROM `term_0_target`").executeQuery());
ResultSet result = Assertions
.assertDoesNotThrow(() -> conn.prepareStatement("SELECT * FROM `term_0_target`").executeQuery());
Assertions.assertDoesNotThrow(() -> {
int loops = 0;
while (result.next()) {
Expand Down Expand Up @@ -186,9 +187,9 @@ public void testFilterInsertionWithRegexExtractedValue() {
String value = "biz baz boz data has no content today (very important though) but it would still have if one had a means to extract it from (here is something else important as well) the strange patterns called parentheses that it seems to have been put in.";
CategoryTable tableImpl = new CategoryTableImpl(ctx, table, 1L, value);
Assertions.assertDoesNotThrow(tableImpl::create);
Assertions
.assertDoesNotThrow(() -> new TableFilters(ctx, table, 1L, value).asBatch().execute());
ResultSet result = Assertions.assertDoesNotThrow(() -> conn.prepareStatement("SELECT * FROM `term_1_target`").executeQuery());
Assertions.assertDoesNotThrow(() -> new TableFilters(ctx, table, 1L, value).asBatch().execute());
ResultSet result = Assertions
.assertDoesNotThrow(() -> conn.prepareStatement("SELECT * FROM `term_1_target`").executeQuery());
Assertions.assertDoesNotThrow(() -> {
int loops = 0;
while (result.next()) {
Expand Down Expand Up @@ -219,7 +220,8 @@ public void testMissingTempTableDataAccessException() {
.filterTables(t -> !t.getName().equals("filtertype"))
.getTables()
.get(0);
DataAccessException ex = Assertions.assertThrows(DataAccessException.class, () -> new TableFilters(ctx, table, 0L, "192.168.1.1").asBatch().execute());
DataAccessException ex = Assertions
.assertThrows(DataAccessException.class, () -> new TableFilters(ctx, table, 0L, "192.168.1.1").asBatch().execute());
Assertions.assertTrue(ex.getMessage().contains("Table \"term_0_target\" not found"));
}

Expand Down

0 comments on commit 4d40630

Please sign in to comment.