use of org.whole.lang.queries.model.Sequence in project whole by wholeplatform.
the class ResolversTest method testCompositeEntityResolverTightening.
@Category(KnownFailingTests.class)
@Test
public void testCompositeEntityResolverTightening() {
org.whole.lang.queries.model.Expression expression = createResolver(QueriesEntityDescriptorEnum.Expression);
Sequence sequence = qf.createSequence(expression);
expression.wAdd(qf.createChildStep());
Assert.assertTrue(EntityUtils.isResolver(expression));
expression.wAdd(qf.createPath());
Assert.assertTrue(Matcher.matchImpl(QueriesEntityDescriptorEnum.Sequence, sequence.wGet(0)));
}
use of org.whole.lang.queries.model.Sequence in project whole by wholeplatform.
the class ResolversTest method testCompositeEntityResolverTighteningSetByIndex.
@Category(KnownFailingTests.class)
@Test
public void testCompositeEntityResolverTighteningSetByIndex() {
org.whole.lang.queries.model.Expression expression = createResolver(QueriesEntityDescriptorEnum.Expression);
Sequence sequence = qf.createSequence(expression);
expression.wSet(0, qf.createChildStep());
Assert.assertTrue(EntityUtils.isResolver(expression));
expression.wSet(1, qf.createPath());
Assert.assertTrue(Matcher.matchImpl(QueriesEntityDescriptorEnum.Sequence, sequence.wGet(0)));
}
use of org.whole.lang.queries.model.Sequence in project whole by wholeplatform.
the class ResolversTest method testCompositeEntityResolverTighteningSetByIndexSparse.
@Category(KnownFailingTests.class)
@Test
public void testCompositeEntityResolverTighteningSetByIndexSparse() {
org.whole.lang.queries.model.Expression expression = createResolver(QueriesEntityDescriptorEnum.Expression);
Sequence sequence = qf.createSequence(expression);
expression.wSet(2, qf.createChildStep());
Assert.assertTrue(EntityUtils.isResolver(expression));
expression.wSet(6, qf.createPath());
Assert.assertTrue(Matcher.matchImpl(QueriesEntityDescriptorEnum.Sequence, sequence.wGet(0)));
}
Aggregations