@Test public void testLoadPosition() { final List<Position> loadPositions = loadAllPositions(); final Position testPosition = loadPositions.get(0); // act final Position loadPosition = testee.loadPosition(testPosition.getId()); assertEquals(testPosition.getName(), loadPosition.getName()); }
private List<Position> loadAllPositions() { final List<Position> loadPositions = testee.loadPositions(); return loadPositions; }
@Test public void testLoadAccounts() { final List<Account> loadAccounts = testee.loadAccounts(); assertTrue(loadAccounts.size() > 0); }