review correction
This commit is contained in:
parent
15f3c94023
commit
6bf3d238b6
|
@ -24,7 +24,7 @@ public class RestClientTest {
|
|||
@Test
|
||||
public void testSuite() {
|
||||
//run the test only when liberty server is started
|
||||
this.whenConsumeWithJsonb_thenGetPerson();
|
||||
//this.whenConsumeWithJsonb_thenGetPerson();
|
||||
}
|
||||
|
||||
public void whenConsumeWithJsonb_thenGetPerson() {
|
||||
|
@ -32,7 +32,7 @@ public class RestClientTest {
|
|||
String result = RestConsumer.consumeWithJsonb(url);
|
||||
|
||||
Person person = JsonbBuilder.create().fromJson(result, Person.class);
|
||||
assert person.getId() == 1;
|
||||
assertEquals(person.getId(), 1);
|
||||
assertEquals(person.getUsername(), "normanlewis");
|
||||
assertEquals(person.getEmail(), "normanlewis@email.com");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue