Skip to content

Commit

Permalink
using another variable for test rest template
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhun Xu authored and seldondev committed Nov 20, 2019
1 parent 902c593 commit 572b43c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void setup() throws Exception {
@LocalServerPort
private int port;

@Autowired private TestRestTemplate testRestTemplate;
@Autowired private TestRestTemplate testRestErrorTemplate;

@Autowired private InternalPredictionService internalPredictionService;

Expand All @@ -80,7 +80,7 @@ public void testModelPredictionNon200Response() throws Exception {
.create(HttpStatus.BAD_REQUEST, "status text", HttpHeaders.EMPTY, responseStr.getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);

Mockito.when(
testRestTemplate
testRestErrorTemplate
.getRestTemplate()
.postForEntity(
Matchers.<URI>any(),
Expand Down

0 comments on commit 572b43c

Please sign in to comment.