Search in sources :

Example 1 with AUTO_TEST_TYPE

use of main.content.CONTENT_CONSTS2.AUTO_TEST_TYPE in project Eidolons by IDemiurge.

the class AutoTestFactory method createTest.

public AutoTest createTest(ObjType type) {
    List<String> list = new ArrayList<>();
    list.add(TEST_ARGS.NAME + ":" + type.getName());
    initArgList(list, type);
    String args = new StringMaster().constructContainer(list);
    AUTO_TEST_TYPE t = new EnumMaster<AUTO_TEST_TYPE>().retrieveEnumConst(AUTO_TEST_TYPE.class, type.getProperty(PROPS.AUTO_TEST_TYPE));
    if (t == null) {
        t = getType(type);
    }
    AutoTest test = new AutoTest(type, args, t, master);
    return test;
}
Also used : AUTO_TEST_TYPE(main.content.CONTENT_CONSTS2.AUTO_TEST_TYPE) StringMaster(main.system.auxiliary.StringMaster) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 AUTO_TEST_TYPE (main.content.CONTENT_CONSTS2.AUTO_TEST_TYPE)1 StringMaster (main.system.auxiliary.StringMaster)1