JetLiteFixture: assign to myEnvironment only once

This commit is contained in:
Stepan Koltsov
2012-05-01 22:32:08 +04:00
parent 0c7401c932
commit c23feab6d1
34 changed files with 289 additions and 11 deletions
@@ -24,6 +24,13 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class AnnotationGenTest extends CodegenTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
createEnvironmentWithMockJdk();
}
public void testPropField() throws NoSuchFieldException, NoSuchMethodException {
loadText("[Deprecated] var x = 0");
Class aClass = generateNamespaceClass();