Fixed broken test

parent 2023cf93
......@@ -140,16 +140,16 @@ public class RestControllerTests {
@Test
public void testGetParticipantsIdAndSurveyIdFromUrl() throws Exception {
Long surveyId = 1L;
Long participantId = 10L;
int remoteId = 92640526;
RestTemplate template = new RestTemplate();
ResponseEntity<Participant> participantEntity = template.getForEntity(
"http://localhost:8080/"+surveyId+"/participant/"+participantId, Participant.class);
"http://localhost:8080/"+surveyId+"/participant/"+remoteId, Participant.class);
Participant participant = participantEntity.getBody();
assertThat(participantEntity.getStatusCode().toString(), is("200"));
assertNotNull(participant);
assertTrue(participant.getId().equals(participantId));
assertTrue(participant.getRemoteId() == remoteId);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment