Search in sources :

Example 6 with TagsVdsMap

use of org.ovirt.engine.core.common.businessentities.TagsVdsMap in project ovirt-engine by oVirt.

the class TagDaoTest method testAttachVdsToTag.

@Test
public void testAttachVdsToTag() {
    dao.attachVdsToTag(newVdsTag);
    TagsVdsMap result = dao.getTagVdsByTagIdAndByVdsId(newVdsTag.getTagId(), newVdsTag.getVdsId());
    assertNotNull(result);
    assertEqualsTagsVdsMap(newVdsTag, result);
}
Also used : TagsVdsMap(org.ovirt.engine.core.common.businessentities.TagsVdsMap) Test(org.junit.Test)

Aggregations

TagsVdsMap (org.ovirt.engine.core.common.businessentities.TagsVdsMap)6 Test (org.junit.Test)3 Guid (org.ovirt.engine.core.compat.Guid)3 Tags (org.ovirt.engine.core.common.businessentities.Tags)2 TagsTemplateMap (org.ovirt.engine.core.common.businessentities.TagsTemplateMap)2 TagsVmMap (org.ovirt.engine.core.common.businessentities.TagsVmMap)2 ResultSet (java.sql.ResultSet)1 SQLException (java.sql.SQLException)1 List (java.util.List)1 Named (javax.inject.Named)1 Singleton (javax.inject.Singleton)1 Before (org.junit.Before)1 TagsType (org.ovirt.engine.core.common.businessentities.TagsType)1 TagsUserGroupMap (org.ovirt.engine.core.common.businessentities.TagsUserGroupMap)1 TagsUserMap (org.ovirt.engine.core.common.businessentities.TagsUserMap)1 VDS (org.ovirt.engine.core.common.businessentities.VDS)1 RowMapper (org.springframework.jdbc.core.RowMapper)1 MapSqlParameterSource (org.springframework.jdbc.core.namedparam.MapSqlParameterSource)1