use of org.whole.lang.java.model.Expression in project whole by wholeplatform.
the class ResolversTest method testAmbiguousDataEntityResolverTightening.
@Category(KnownFailingTests.class)
@Test
public void testAmbiguousDataEntityResolverTightening() {
// workaround for JVM termination on StackOverflowError
Assert.fail();
Expression expression = createResolver(JavaEntityDescriptorEnum.Expression);
Assignment assignment = jf.createAssignment();
assignment.setRightHandSide(expression);
expression.wSetValue("stringLiteral");
Assert.assertTrue(Matcher.matchImpl(JavaEntityDescriptorEnum.StringLiteral, assignment.getRightHandSide()));
}
use of org.whole.lang.java.model.Expression in project whole by wholeplatform.
the class ResolversTest method testDataEntityResolverTightening.
@Test
public void testDataEntityResolverTightening() {
Expression expression = createResolver(JavaEntityDescriptorEnum.Expression);
Assignment assignment = jf.createAssignment();
assignment.setRightHandSide(expression);
expression.wSetValue(false);
Assert.assertTrue(Matcher.matchImpl(JavaEntityDescriptorEnum.BooleanLiteral, assignment.getRightHandSide()));
}
Aggregations