@Test public void testNormalLookup() throws Exception { HiscoreTestService hiscores = new HiscoreTestService(server.url("/")); HiscoreResult result = hiscores.lookupUsername("zezima", HiscoreEndpoint.NORMAL.getHiscoreURL()); Assert.assertEquals(50, result.getAttack().getLevel()); Assert.assertEquals(159727L, result.getFishing().getExperience()); Assert.assertEquals(492790, result.getConstruction().getRank()); Assert.assertEquals(1432, result.getClueScrollAll().getLevel()); Assert.assertEquals(324, result.getClueScrollBeginner().getRank()); Assert.assertEquals(8008, result.getClueScrollEasy().getRank()); Assert.assertEquals(911, result.getClueScrollMedium().getLevel()); Assert.assertEquals(42, result.getClueScrollHard().getRank()); Assert.assertEquals(777, result.getClueScrollElite().getLevel()); Assert.assertEquals(254, result.getClueScrollMaster().getRank()); Assert.assertEquals(-1, result.getLastManStanding().getLevel()); Assert.assertEquals(2460, result.getLeaguePoints().getLevel()); Assert.assertEquals(37, result.getAbyssalSire().getLevel()); Assert.assertEquals(92357, result.getCallisto().getRank()); Assert.assertEquals(5847, result.getZulrah().getLevel()); }
@VisibleForTesting HiscoreResult lookupUsername(String username, HttpUrl httpUrl) throws IOException { return hiscoreClient.lookup(username, httpUrl); }
HiscoreService { @VisibleForTesting HiscoreResult lookupUsername(String username, HttpUrl httpUrl) throws IOException { return hiscoreClient.lookup(username, httpUrl); } }
HiscoreService { @VisibleForTesting HiscoreResult lookupUsername(String username, HttpUrl httpUrl) throws IOException { return hiscoreClient.lookup(username, httpUrl); }  }
HiscoreService { @VisibleForTesting HiscoreResult lookupUsername(String username, HttpUrl httpUrl) throws IOException { return hiscoreClient.lookup(username, httpUrl); }  HiscoreResult lookupUsername(String username, HiscoreEndpoint endpoint); }
HiscoreService { @VisibleForTesting HiscoreResult lookupUsername(String username, HttpUrl httpUrl) throws IOException { return hiscoreClient.lookup(username, httpUrl); }  HiscoreResult lookupUsername(String username, HiscoreEndpoint endpoint);  }