package nebula.lang; import junit.framework.TestCase; public class EntityActionComplierTest extends TestCase { TypeLoaderForTest loader; EntityActionComplier funcCmp; Compiler cp; CompilerContext context; protected void setUp() throws Exception { loader = new TypeLoaderForTest(new SystemTypeLoader()); funcCmp = EntityActionComplier.DEFAULT; context = new CompilerContext() { @Override public Type resolveType(String name) { return loader.findType(name); } }; cp = new Compiler(context); } protected void tearDown() throws Exception { super.tearDown(); } public final void testDoCompile() { // Code code = cp.opRelational(Operator.EQ, cp.opLongCst("10"), cp.opLongCst("100")); // Type type = new TypeImp(loader, "test"); // // EntityAction action = funcCmp.compile(context, type, "test", new Action(null, null)); // action.exec(null, null, null); } }