@NotNull
  protected PsiClass doTest(String qualifiedName) {
    KotlinLightClass psiClass =
        (KotlinLightClass)
            finder.findClass(qualifiedName, GlobalSearchScope.allScope(getProject()));
    assertNotNull(psiClass);

    Asserter asserter = new Asserter();

    asserter.assertModifiersCoherent(psiClass);

    asserter.assertPropertyCoherent(psiClass, "isInterface");
    asserter.assertPropertyCoherent(psiClass, "isAnnotationType");
    asserter.assertPropertyCoherent(psiClass, "isEnum");
    asserter.assertPropertyCoherent(psiClass, "hasTypeParameters");
    asserter.assertPropertyCoherent(psiClass, "isDeprecated");

    asserter.reportFailures();

    return psiClass;
  }
示例#2
0
 private void doAssert(final Table table, final FieldDef... ignoredColumns) {
   replayAll();
   asserter.assertTableInDatabase(toTableData(table), ignoredColumns);
   verifyAll();
 }