Search in sources :

Example 6 with RefFilter

use of com.evolveum.midpoint.prism.query.RefFilter in project midpoint by Evolveum.

the class TestFilterExpression method test202EvaluateExpressionLinkRefObjectReferenceTypeDefaultsNull.

@Test
public void test202EvaluateExpressionLinkRefObjectReferenceTypeDefaultsNull() throws Exception {
    final String TEST_NAME = "test202EvaluateExpressionLinkRefObjectReferenceTypeDefaultsNull";
    TestUtil.displayTestTile(TEST_NAME);
    // GIVEN
    OperationResult result = new OperationResult(TestFilterExpression.class.getName() + "." + TEST_NAME);
    Task task = taskManager.createTaskInstance(TEST_NAME);
    ObjectFilter filter = evaluateExpressionAssertFilter("expression-linkref-object-reference-type-filter-defaults.xml", null, RefFilter.class, task, result);
    RefFilter refFilter = (RefFilter) filter;
    AssertJUnit.assertNull("Expected NO values in filter, but found " + refFilter.getValues(), refFilter.getValues());
    executeFilter(filter, 2, task, result);
}
Also used : RefFilter(com.evolveum.midpoint.prism.query.RefFilter) Task(com.evolveum.midpoint.task.api.Task) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) ObjectFilter(com.evolveum.midpoint.prism.query.ObjectFilter) Test(org.testng.annotations.Test) AbstractInternalModelIntegrationTest(com.evolveum.midpoint.model.impl.AbstractInternalModelIntegrationTest)

Aggregations

RefFilter (com.evolveum.midpoint.prism.query.RefFilter)6 ObjectFilter (com.evolveum.midpoint.prism.query.ObjectFilter)5 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)5 Task (com.evolveum.midpoint.task.api.Task)5 Test (org.testng.annotations.Test)5 AbstractInternalModelIntegrationTest (com.evolveum.midpoint.model.impl.AbstractInternalModelIntegrationTest)4 RoleSelectionSpecification (com.evolveum.midpoint.model.api.RoleSelectionSpecification)1 TypeFilter (com.evolveum.midpoint.prism.query.TypeFilter)1 CommunicationException (com.evolveum.midpoint.util.exception.CommunicationException)1 ConfigurationException (com.evolveum.midpoint.util.exception.ConfigurationException)1 ExpressionEvaluationException (com.evolveum.midpoint.util.exception.ExpressionEvaluationException)1 ObjectAlreadyExistsException (com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException)1 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)1 PolicyViolationException (com.evolveum.midpoint.util.exception.PolicyViolationException)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 SecurityViolationException (com.evolveum.midpoint.util.exception.SecurityViolationException)1 UserType (com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)1