Extract static functions to CodegenTestUtil

Add Nullable/NotNull annotations
This commit is contained in:
Alexander Udalov
2013-01-25 15:30:12 +04:00
committed by Alexander Udalov
parent 63aacc416f
commit 9bf73cf4b3
13 changed files with 229 additions and 140 deletions
@@ -25,6 +25,8 @@ import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.List;
import static org.jetbrains.jet.codegen.CodegenTestUtil.findDeclaredMethodByName;
public class ClassGenTest extends CodegenTestCase {
@Override
@@ -161,7 +163,7 @@ public class ClassGenTest extends CodegenTestCase {
loadText("abstract class Foo { abstract fun x(): String; fun y(): Int = 0 }");
final Class aClass = generateClass("Foo");
assertNotNull(aClass.getMethod("x"));
assertNotNull(findMethodByName(aClass, "y"));
assertNotNull(findDeclaredMethodByName(aClass, "y"));
}
public void testInheritedMethod() {