mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
[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:
parent
6fbaa583cb
commit
36d98e5949
2 changed files with 62 additions and 62 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue