Skip to content

Commit 0d065cd

Browse files
committed
minor cleanup, modernizing for J21
1 parent b807640 commit 0d065cd

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

bootique-jdbc-junit5/src/main/java/io/bootique/jdbc/junit5/matcher/TableMatcher.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,7 @@
2727
*
2828
* @since 2.0
2929
*/
30-
public class TableMatcher {
31-
32-
private final Table table;
33-
34-
public TableMatcher(Table table) {
35-
this.table = table;
36-
}
37-
38-
public Table getTable() {
39-
return table;
40-
}
30+
public record TableMatcher(Table table) {
4131

4232
public RowCountMatcher eq(String column, Object value) {
4333
return new RowCountMatcher(table).andEq(column, value);

bootique-jdbc-junit5/src/test/java/io/bootique/jdbc/junit5/TableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void matcher() {
7777

7878
TableMatcher m = t.matcher();
7979
assertNotNull(m);
80-
assertSame(t, m.getTable());
80+
assertSame(t, m.table());
8181
}
8282

8383
@Test

0 commit comments

Comments
 (0)