@Test public void testShouldGetComplaintByCrnNo() { server.expect(once(), requestTo("http: .andExpect(method(HttpMethod.POST)) .andRespond(withSuccess(new Resources().getFileContents("routerResponse.json"), MediaType.APPLICATION_JSON_UTF8)); final RouterResponse sevaRequest = routerRestRepository.getRouter(DEFAULT, ADMINISTRATION); server.verify(); assertTrue(sevaRequest != null); assertEquals(Long.valueOf(1l), sevaRequest.getRouterTypes().get(0).getId()); }
public RouterResponse getRouter(String tenantId, String hierarchyType) { RequestInfoBody requestBody = buildRequestInfo(); return restTemplate.postForObject(url, requestBody, RouterResponse.class, tenantId, hierarchyType); }
RouterRestRepository { public RouterResponse getRouter(String tenantId, String hierarchyType) { RequestInfoBody requestBody = buildRequestInfo(); return restTemplate.postForObject(url, requestBody, RouterResponse.class, tenantId, hierarchyType); } }
RouterRestRepository { public RouterResponse getRouter(String tenantId, String hierarchyType) { RequestInfoBody requestBody = buildRequestInfo(); return restTemplate.postForObject(url, requestBody, RouterResponse.class, tenantId, hierarchyType); } RouterRestRepository(final RestTemplate restTemplate,
                                @Value("${egov.workflow.host}") final String workFlowHost,
                                @Value("${egov.workflow.url}") final String workFlowUrl); }
RouterRestRepository { public RouterResponse getRouter(String tenantId, String hierarchyType) { RequestInfoBody requestBody = buildRequestInfo(); return restTemplate.postForObject(url, requestBody, RouterResponse.class, tenantId, hierarchyType); } RouterRestRepository(final RestTemplate restTemplate,
                                @Value("${egov.workflow.host}") final String workFlowHost,
                                @Value("${egov.workflow.url}") final String workFlowUrl); RouterResponse getRouter(String tenantId, String hierarchyType); }
RouterRestRepository { public RouterResponse getRouter(String tenantId, String hierarchyType) { RequestInfoBody requestBody = buildRequestInfo(); return restTemplate.postForObject(url, requestBody, RouterResponse.class, tenantId, hierarchyType); } RouterRestRepository(final RestTemplate restTemplate,
                                @Value("${egov.workflow.host}") final String workFlowHost,
                                @Value("${egov.workflow.url}") final String workFlowUrl); RouterResponse getRouter(String tenantId, String hierarchyType);  }