Entry { protected static List<Integer> parse(String line0, String line1, String line2) { List<Integer> output = new ArrayList<Integer>(); for (int i = 0; i < line0.length(); i += 3) { output.add(Entry.parseNumber(line0.substring(i), line1.substring(i), line2.substring(i))); } return output; } Entry(List<Integer> accountNumber); Account toAccount();  }
@Test public void should_parse_2_numbers() { List<Integer> parsedInput = Entry.parse( " ", " | |", " | |"); assertThat(parsedInput).containsExactly(1, 1); }
@Test public void should_parse_3_numbers() { List<Integer> parsedInput = Entry.parse( " ", " | | |", " | | |"); assertThat(parsedInput).containsExactly(1, 1, 1); }