From f0430969e0f2be1bd5e48f8e97c3145730c212d7 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Tue, 19 Jun 2012 22:38:25 +0400 Subject: [PATCH] Updated some tests after supporting private top-level members in backend. --- compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java index b1f83a50407..30322942667 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java @@ -81,7 +81,7 @@ public class PropertyGenTest extends CodegenTestCase { final Field field = fields[0]; field.setAccessible(true); assertEquals("x", field.getName()); - assertEquals(Modifier.PRIVATE | Modifier.STATIC | Modifier.FINAL, field.getModifiers()); + assertEquals(Modifier.PUBLIC | Modifier.STATIC | Modifier.FINAL, field.getModifiers()); assertEquals(239, field.get(null)); } @@ -89,7 +89,7 @@ public class PropertyGenTest extends CodegenTestCase { createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS); loadFile("properties/fieldPropertyAccess.jet"); // System.out.println(generateToText()); - final Method method = generateFunction(); + final Method method = generateFunction("increment"); assertEquals(1, method.invoke(null)); assertEquals(2, method.invoke(null)); }