use of com.qlangtech.tis.manage.common.Option in project tis by qlangtech.
the class TestGroovyShellEvaluate method testEval.
public void testEval() {
List<Option> fieldTyps = GroovyShellEvaluate.eval("com.qlangtech.tis.plugin.ds.ReflectSchemaFieldType.all()");
assertNotNull(fieldTyps);
List<Option> allOpts = ReflectSchemaFieldType.all();
assertEquals(allOpts.size(), fieldTyps.size());
int index = 0;
Option actualOpt = null;
for (Option o : allOpts) {
actualOpt = fieldTyps.get(index++);
assertEquals("index:" + index, o.getName() + "_" + o.getValue(), actualOpt.getName() + "_" + actualOpt.getValue());
}
}
Aggregations