From 56d3614025ab41e01e23e01f1eb9236f76ccd846 Mon Sep 17 00:00:00 2001 From: "Goulven.Furet" Date: Sun, 10 Dec 2023 11:53:04 +0100 Subject: [PATCH] Adding test case --- commons/src/test/java/org/open4goods/commons/BarcodeTest.java | 4 ++++ 1 file changed, 4 insertions(+) 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());