use of org.whole.lang.builders.ModelBuilderOperation in project whole by wholeplatform.
the class FactoriesTest method testStrictMatch.
@Test
public void testStrictMatch() {
IEntity model = new JavaScriptModel().create();
ModelBuilderOperation op = new ModelBuilderOperation(RegistryConfigurations.STRICT);
new JavaScriptModel().apply(op);
IEntity strictModel = op.wGetResult();
Assert.assertTrue(Matcher.match(model, strictModel));
op = new ModelBuilderOperation(RegistryConfigurations.RESOLVER);
new JavaScriptModel().apply(op);
IEntity resolverModel = op.wGetResult();
Assert.assertTrue(Matcher.match(model, resolverModel));
Assert.assertTrue(Matcher.match(strictModel, resolverModel));
}
Aggregations