@Test public void should_create_valid_username_url() { String usernameUrl = builder.getUserByUsername("davcamer"); assertEquals(TEAM_CITY_URL + "/app/rest/users/username:davcamer", usernameUrl); }
String getUserByUsername(String username) { return build("/users/username:" + username); }
TeamCityUrlBuilder { String getUserByUsername(String username) { return build("/users/username:" + username); } }
TeamCityUrlBuilder { String getUserByUsername(String username) { return build("/users/username:" + username); } TeamCityUrlBuilder(String teamCityUrl); }
TeamCityUrlBuilder { String getUserByUsername(String username) { return build("/users/username:" + username); } TeamCityUrlBuilder(String teamCityUrl);  }
TeamCityUrlBuilder { String getUserByUsername(String username) { return build("/users/username:" + username); } TeamCityUrlBuilder(String teamCityUrl);   }