use of org.apache.syncope.common.lib.search.GroupFiqlSearchConditionBuilder in project syncope by apache.
the class SearchCondConverterTest method assignable.
@Test
public void assignable() {
String fiql = new GroupFiqlSearchConditionBuilder().isAssignable().query();
assertEquals(SpecialAttr.ASSIGNABLE + "==" + SpecialAttr.NULL, fiql);
AssignableCond assignableCond = new AssignableCond();
assignableCond.setRealmFullPath("/even/two");
SearchCond simpleCond = SearchCond.getLeafCond(assignableCond);
assertEquals(simpleCond, SearchCondConverter.convert(fiql, "/even/two"));
}
use of org.apache.syncope.common.lib.search.GroupFiqlSearchConditionBuilder in project syncope by apache.
the class SearchCondConverterTest method member.
@Test
public void member() {
String fiql = new GroupFiqlSearchConditionBuilder().withMembers("rossini").query();
assertEquals(SpecialAttr.MEMBER + "==rossini", fiql);
MemberCond mcond = new MemberCond();
mcond.setMember("rossini");
SearchCond simpleCond = SearchCond.getLeafCond(mcond);
assertEquals(simpleCond, SearchCondConverter.convert(fiql));
}
Aggregations