@Test public void test_get_by_id() throws Exception { server.expect(once(), requestTo("http: .andExpect(method(HttpMethod.GET)) .andRespond(withSuccess(resources.getFileContents("boundary/search_boundary_by_id.json"), MediaType.APPLICATION_JSON_UTF8)); boundaryRepository.getBoundaryById("boundaryId", "tenantId"); server.verify(); assertEquals(1, 1); }
public Boundary getBoundaryById(final String id, final String tenantId) { final String url = boundaryServiceHost + "egov-location/boundarys?boundary.id={id}&boundary.tenantId={tenantId}"; return getBoundaryServiceResponse(url, id, tenantId).getBoundaries().get(0); }
BoundaryRepository { public Boundary getBoundaryById(final String id, final String tenantId) { final String url = boundaryServiceHost + "egov-location/boundarys?boundary.id={id}&boundary.tenantId={tenantId}"; return getBoundaryServiceResponse(url, id, tenantId).getBoundaries().get(0); } }
BoundaryRepository { public Boundary getBoundaryById(final String id, final String tenantId) { final String url = boundaryServiceHost + "egov-location/boundarys?boundary.id={id}&boundary.tenantId={tenantId}"; return getBoundaryServiceResponse(url, id, tenantId).getBoundaries().get(0); } BoundaryRepository(final RestTemplate restTemplate,
            @Value("${egov.services.boundary.host}") final String boundaryServiceHost); }
BoundaryRepository { public Boundary getBoundaryById(final String id, final String tenantId) { final String url = boundaryServiceHost + "egov-location/boundarys?boundary.id={id}&boundary.tenantId={tenantId}"; return getBoundaryServiceResponse(url, id, tenantId).getBoundaries().get(0); } BoundaryRepository(final RestTemplate restTemplate,
            @Value("${egov.services.boundary.host}") final String boundaryServiceHost); Boundary getBoundaryById(final String id, final String tenantId); }
BoundaryRepository { public Boundary getBoundaryById(final String id, final String tenantId) { final String url = boundaryServiceHost + "egov-location/boundarys?boundary.id={id}&boundary.tenantId={tenantId}"; return getBoundaryServiceResponse(url, id, tenantId).getBoundaries().get(0); } BoundaryRepository(final RestTemplate restTemplate,
            @Value("${egov.services.boundary.host}") final String boundaryServiceHost); Boundary getBoundaryById(final String id, final String tenantId);  }