Search in sources :

Example 11 with Option

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());
    }
}
Also used : Option(com.qlangtech.tis.manage.common.Option)

Aggregations

Option (com.qlangtech.tis.manage.common.Option)11 Collectors (java.util.stream.Collectors)5 Lists (com.google.common.collect.Lists)4 Context (com.alibaba.citrus.turbine.Context)3 Describable (com.qlangtech.tis.extension.Describable)3 Descriptor (com.qlangtech.tis.extension.Descriptor)3 ISelectedTab (com.qlangtech.tis.plugin.ds.ISelectedTab)3 List (java.util.List)3 JSONArray (com.alibaba.fastjson.JSONArray)2 JSONObject (com.alibaba.fastjson.JSONObject)2 TIS (com.qlangtech.tis.TIS)2 DataxReader (com.qlangtech.tis.datax.impl.DataxReader)2 SuFormProperties (com.qlangtech.tis.extension.impl.SuFormProperties)2 GroovyShellEvaluate (com.qlangtech.tis.extension.util.GroovyShellEvaluate)2 IdentityName (com.qlangtech.tis.plugin.IdentityName)2 FormField (com.qlangtech.tis.plugin.annotation.FormField)2 FormFieldType (com.qlangtech.tis.plugin.annotation.FormFieldType)2 Validator (com.qlangtech.tis.plugin.annotation.Validator)2 IControlMsgHandler (com.qlangtech.tis.runtime.module.misc.IControlMsgHandler)2 java.util (java.util)2