/** * Test get Quota by Name, with name of specific Quota. * * @throws Exception */ @Test public void testGetQuotaByAdElementId() throws Exception { List<Quota> quotaByAdElementIdList = dao.getQuotaByAdElementId(FixturesTool.USER_EXISTING_ID, FixturesTool.STORAGE_POOL_NFS); // Check if quota general has been fetched. assertEquals(quotaByAdElementIdList.get(0).getQuotaName(), "Quota General"); }