package jetbrains.mps.closures.test; /*Generated by MPS */ import junit.framework.TestCase; import jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes; import junit.framework.Assert; public class ThisExpression_Test extends TestCase { public void test_anonymousClass() throws Exception { Runnable run = new Runnable() { private Integer foo = 0; @Override public void run() { new _FunctionTypes._return_P0_E0<Integer>() { public Integer invoke() { return foo = 42; } }.invoke(); Assert.assertSame(42, this.foo); } }; run.run(); } public void test_topLevelClass() throws Exception { ThisProvider tp = new ThisProvider(); tp.testThisExpression(); } public ThisExpression_Test() { } }