From 638764d2d691e19d2373df9bf75d3400f10f267b Mon Sep 17 00:00:00 2001 From: Jan Mewes Date: Thu, 19 May 2016 21:40:05 +0200 Subject: [PATCH] [Red] Write a failing test --- .../de/softwerkskammer/bankocr/AccountNumbersParserTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/de/softwerkskammer/bankocr/AccountNumbersParserTest.java b/src/test/java/de/softwerkskammer/bankocr/AccountNumbersParserTest.java index 9e86c7a..e1db712 100644 --- a/src/test/java/de/softwerkskammer/bankocr/AccountNumbersParserTest.java +++ b/src/test/java/de/softwerkskammer/bankocr/AccountNumbersParserTest.java @@ -19,6 +19,8 @@ public void testGetAccountNumbers() throws IOException { File testFile = getTestFile("account-numbers.txt"); List accountNumbers = AccountNumbersParser.getAccountNumbers(testFile); assertEquals("Cannot parse all account numbers", 12, accountNumbers.size()); + assertEquals("Cannot parse account number", "000000000", accountNumbers.get(0)); + assertEquals("Cannot parse account number", "000000051", accountNumbers.get(accountNumbers.size() - 1)); } private File getTestFile(String fileName) {