Skip to content

Commit

Permalink
add the missing checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ozlerhakan committed Feb 25, 2024
1 parent 5ffadf3 commit 6b6e69a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/java/com/poiji/bind/mapping/PoijiHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ public PoijiHandlerTest(String fieldName) throws NoSuchFieldException {

@Parameterized.Parameters(name = "{index}: ({0})={1}")
public static Iterable<Object[]> queries() {
return List.of(new Object[][]{
return List.of(new Object[][] {
{
"id"
},
{
"author"
},
{ "empty" }
});
}

@Test
public void shouldFindTitleColumn() {
PoijiHandler<InventoryData> poijiHandler = new PoijiHandler<>(InventoryData.class, PoijiOptions.PoijiOptionsBuilder.settings().build(), o -> {});
PoijiHandler<InventoryData> poijiHandler = new PoijiHandler<>(InventoryData.class,
PoijiOptions.PoijiOptionsBuilder.settings().build(), o -> {
});

Integer titleColumn = poijiHandler.findTitleColumn(annotation);

Expand Down

0 comments on commit 6b6e69a

Please sign in to comment.