[FIX] Adjusted some of the code formatting and an assertEquals in the PetTests. Also, attempted to mock out the storage dependency purely for testing; however, since isolating the core application's spring-based use of db was more difficult than expected; the code was removed.

This commit is contained in:
Jad Malek 2018-02-24 16:58:23 -05:00
parent 6fbaa583cb
commit 36d98e5949
2 changed files with 62 additions and 62 deletions

View file

@ -76,6 +76,6 @@ public class PetTests {
List<Visit> resultOfGetVisits = pet.getVisits(); List<Visit> resultOfGetVisits = pet.getVisits();
Visit onlyVisitInCollection = resultOfGetVisits.iterator().next(); Visit onlyVisitInCollection = resultOfGetVisits.iterator().next();
assertEquals(1, resultOfGetVisits.size()); assertEquals(1, resultOfGetVisits.size());
assertEquals(visitForTesting, onlyVisitInCollection); assertEquals(visitForTesting.getId(), onlyVisitInCollection.getId());
} }
} }