Skip to content

Commit

Permalink
repo-sqale: two more TypeFilter tests with wild type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Jun 30, 2021
1 parent eee767e commit c434c43
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,22 @@ public void test314QueryWithTypeFiltersMatchingTheQuery() throws SchemaException
task1Oid, task2Oid);
}

@Test
public void test315QueryWithTypeFilterForSupertype() throws SchemaException {
// works fine, task is also an object, nothing bad happens
searchObjectTest("matching the type filter of supertype", TaskType.class,
f -> f.type(ObjectType.class),
task1Oid, task2Oid);
}

@Test
public void test316QueryWithTypeFilterForUnrelatedType() throws SchemaException {
// "works" but for obvious reasons finds nothing, there is no common OID between the two
searchObjectTest("matching the type filter of unrelated type", TaskType.class,
f -> f.type(FocusType.class));
}


/* TODO EXISTS tests
1. @Count property => pendingOperationCount > 0; see: ClassDefinitionParser#parseMethod() + getJaxbName()
EXISTS(pendingOperation, null)
Expand Down

0 comments on commit c434c43

Please sign in to comment.