diff --git a/commons/src/test/java/org/open4goods/commons/BarcodeTest.java b/commons/src/test/java/org/open4goods/commons/BarcodeTest.java index 051053a14..cd6bf8dc3 100644 --- a/commons/src/test/java/org/open4goods/commons/BarcodeTest.java +++ b/commons/src/test/java/org/open4goods/commons/BarcodeTest.java @@ -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());