Commit a6de3e68 authored by Administrator's avatar Administrator

Adds a test to the modify method in PeopleResourceUnitTest class

This test was unintentionally leaved out when creating the test case.
parent 248504e2
......@@ -193,6 +193,18 @@ public class PeopleResourceUnitTest {
assertThat(response, hasBadRequestStatus());
}
@Test
public void testModifyNullPointerException() throws Exception {
daoMock.modify(anyObject());
expectLastCall().andThrow(new NullPointerException());
replay(daoMock);
final Response response = resource.modify(existentId(), newName(), newSurname());
assertThat(response, hasBadRequestStatus());
}
@Test
public void testAdd() throws Exception {
expect(daoMock.add(newName(), newSurname()))
......
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