Skip to content

Commit

Permalink
Adding test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Goulven.Furet authored and Goulven.Furet committed Dec 10, 2023
1 parent ca574f8 commit 56d3614
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commons/src/test/java/org/open4goods/commons/BarcodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public void test() {
assertEquals(BarcodeType.ISBN_13, service.sanitize("0198526636").getKey());


assertEquals(BarcodeType.ISBN_13, service.sanitize("9780786296323").getKey());




// Testing invalid
assertEquals(BarcodeType.UNKNOWN, service.sanitize("8436542859045").getKey());

Expand Down

0 comments on commit 56d3614

Please sign in to comment.