예제 #1
0
  /** Ensures a collection of pools are returned. */
  @Test
  public void testGetAllVmPoolsForUser() {
    List<vm_pools> result = dao.getAllForUser(USER_ID);

    assertNotNull(result);
    assertFalse(result.isEmpty());
  }
예제 #2
0
  /** Ensures an empty collection is returned. */
  @Test
  public void testGetAllVmPoolsForUserWithNoVmPools() {
    List<vm_pools> result = dao.getAllForUser(Guid.NewGuid());

    assertNotNull(result);
    assertTrue(result.isEmpty());
  }