/** Ensures that getting a VM pool by name works as expected. */ @Test public void testGetByName() { vm_pools result = dao.getByName(existingVmPool.getvm_pool_name()); assertNotNull(result); assertEquals(existingVmPool, result); }
/** Ensures that saving a VM pool works as expected. */ @Test public void testSaveVmPool() { dao.save(newVmPool); vm_pools result = dao.getByName(newVmPool.getvm_pool_name()); assertNotNull(result); assertEquals(newVmPool, result); }
/** Ensures that getting a VM pool by an invalid name returns null. */ @Test public void testGetByNameWithInvalidName() { vm_pools result = dao.getByName("farkle"); assertNull(result); }