DS-4224 Improve related test and add additional test

This commit is contained in:
Andrew Wood
2019-09-23 14:31:21 -04:00
parent febe98f43f
commit 83ba0936c7
3 changed files with 296 additions and 0 deletions

View File

@@ -320,6 +320,12 @@ public class RelationshipServiceImplTest {
Mockito.verify(relationshipDAO).save(context, relationship);
}
@Test
public void testCountTotal() throws Exception {
when(relationshipDAO.countRows(context)).thenReturn(0);
assertEquals("TestCountTotal 1", 0, relationshipService.countTotal(context));
}
/**
* Helper method that returns a configured Relationship
* @param leftItem Relationship's left item