use of com.sanction.thunder.models.PilotUser in project thunder by RohanNagar.
the class UsersDaoTest method testSuccessfulUpdate.
@Test
public void testSuccessfulUpdate() {
when(table.getItem(anyString(), anyString())).thenReturn(item);
PilotUser result = usersDao.update(null, user);
verify(table, times(1)).getItem(anyString(), anyString());
verify(table, times(1)).putItem(any(Item.class), any(Expected.class));
assertEquals(user, result);
}
Aggregations