use of org.ovirt.engine.api.model.NetworkFilterParameter in project ovirt-engine by oVirt.
the class BackendVmNicFilterParameterResourceTest method testUpdate.
@Test
public void testUpdate() throws Exception {
setUpGetEntityExpectations(1);
setUriInfo(setUpActionExpectations(ActionType.UpdateVmNicFilterParameter, VmNicFilterParameterParameters.class, new String[] { "VmId" }, new Object[] { VM_ID }, true, true));
NetworkFilterParameter parameter = resource.update(getParameter());
assertNotNull(parameter);
}
use of org.ovirt.engine.api.model.NetworkFilterParameter in project ovirt-engine by oVirt.
the class BackendVmNicFilterParametersResourceTest method getModel.
static NetworkFilterParameter getModel(int index) {
NetworkFilterParameter model = new NetworkFilterParameter();
model.setName(NAMES[index]);
model.setId(GUIDS[index].toString());
model.setValue(NAMES[index]);
return model;
}
use of org.ovirt.engine.api.model.NetworkFilterParameter in project ovirt-engine by oVirt.
the class BackendVmNicFilterParametersResourceTest method testAddIncompleteParameters.
@Test
public void testAddIncompleteParameters() throws Exception {
NetworkFilterParameter model = new NetworkFilterParameter();
setUriInfo(setUpBasicUriExpectations());
try {
collection.add(model);
fail("expected WebApplicationException on incomplete parameters");
} catch (WebApplicationException wae) {
verifyIncompleteException(wae, "NetworkFilterParameter", "add", "value");
}
}
Aggregations