@Test public void testNormalLookup() throws Exception { HiscoreTestService hiscores = new HiscoreTestService(server.url("/")); HiscoreResult result = hiscores.lookupUsername("zezima", HiscoreEndpoint.NORMAL).build(); 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(254, result.getClueScrollMaster().getRank()); }
public HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint) throws IOException { return lookupUsername(username, endpoint.getHiscoreURL()); }
HiscoreService { public HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint) throws IOException { return lookupUsername(username, endpoint.getHiscoreURL()); } }
HiscoreService { public HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint) throws IOException { return lookupUsername(username, endpoint.getHiscoreURL()); }  }
HiscoreService { public HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint) throws IOException { return lookupUsername(username, endpoint.getHiscoreURL()); }  HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint); HiscoreResultBuilder lookupUsername(String username, HttpUrl hiscoreUrl); }
HiscoreService { public HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint) throws IOException { return lookupUsername(username, endpoint.getHiscoreURL()); }  HiscoreResultBuilder lookupUsername(String username, HiscoreEndpoint endpoint); HiscoreResultBuilder lookupUsername(String username, HttpUrl hiscoreUrl);  }