void () { PsiJavaFile file = getFile("MyClass"); assertTrue(file.isValid()); assertEquals("pack", file.getPackageName()); assertEquals(1, file.getClasses().length); file = getFile("MyEnum"); assertEquals(LanguageLevel.JDK_1_5, file.getLanguageLevel()); }