/** Ensures a collection of pools are returned. */ @Test public void testGetAllVmPoolsForUser() { List<vm_pools> result = dao.getAllForUser(USER_ID); assertNotNull(result); assertFalse(result.isEmpty()); }
/** Ensures an empty collection is returned. */ @Test public void testGetAllVmPoolsForUserWithNoVmPools() { List<vm_pools> result = dao.getAllForUser(Guid.NewGuid()); assertNotNull(result); assertTrue(result.isEmpty()); }