Search in sources :

Example 21 with Tag

use of org.ovirt.engine.api.model.Tag in project ovirt-engine by oVirt.

the class AbstractBackendAssignedTagsResourceTest method testAddIncompleteParameters.

@Test
public void testAddIncompleteParameters() throws Exception {
    setUriInfo(setUpBasicUriExpectations());
    try {
        collection.add(new Tag());
        fail("expected WebApplicationException on incomplete parameters");
    } catch (WebApplicationException wae) {
        verifyIncompleteException(wae, "Tag", "add", "id|name");
    }
}
Also used : WebApplicationException(javax.ws.rs.WebApplicationException) Tag(org.ovirt.engine.api.model.Tag) Test(org.junit.Test)

Aggregations

Tag (org.ovirt.engine.api.model.Tag)21 Test (org.junit.Test)15 Response (javax.ws.rs.core.Response)5 WebApplicationException (javax.ws.rs.WebApplicationException)4 Template (org.ovirt.engine.api.model.Template)2 UriInfo (javax.ws.rs.core.UriInfo)1 Host (org.ovirt.engine.api.model.Host)1 User (org.ovirt.engine.api.model.User)1 Vm (org.ovirt.engine.api.model.Vm)1 V3Link (org.ovirt.engine.api.v3.types.V3Link)1 V3SpecialObjects (org.ovirt.engine.api.v3.types.V3SpecialObjects)1 Tags (org.ovirt.engine.core.common.businessentities.Tags)1 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)1