@Test public void testDarkElixirParser() throws IOException, BotBadBaseException { int fail = 0; for (int i = 0; i < imageNames.length; i++) { String s = imageNames[i]; BufferedImage image = ImageIO.read(TestImageParser.class.getResourceAsStream(imageLocation + s)); int de = ImageParser.parseDarkElixir(image); try { Assert.assertEquals(expectedDarkElixir[i], de); } catch (AssertionError e) { fail++; System.err.println(e.getMessage()); } } System.out.println("DE Success Rate: " + (1 - (float) fail / imageNames.length)); }
public static int parseDarkElixir(BufferedImage image) throws BotBadBaseException { return parseDarkElixirFromBinary(imageToBinary(image)); }
ImageParser { public static int parseDarkElixir(BufferedImage image) throws BotBadBaseException { return parseDarkElixirFromBinary(imageToBinary(image)); } }
ImageParser { public static int parseDarkElixir(BufferedImage image) throws BotBadBaseException { return parseDarkElixirFromBinary(imageToBinary(image)); }  }
ImageParser { public static int parseDarkElixir(BufferedImage image) throws BotBadBaseException { return parseDarkElixirFromBinary(imageToBinary(image)); }  static int parseGold(BufferedImage image); static int parseElixir(BufferedImage image); static int parseDarkElixir(BufferedImage image); static int[] parseTroopCount(); static int[] parseLoot(); static boolean isCollectorFullBase(); }
ImageParser { public static int parseDarkElixir(BufferedImage image) throws BotBadBaseException { return parseDarkElixirFromBinary(imageToBinary(image)); }  static int parseGold(BufferedImage image); static int parseElixir(BufferedImage image); static int parseDarkElixir(BufferedImage image); static int[] parseTroopCount(); static int[] parseLoot(); static boolean isCollectorFullBase();  }