diff --git a/java/testFramework/src/com/intellij/testFramework/fixtures/JavaCodeInsightTestFixture.java b/java/testFramework/src/com/intellij/testFramework/fixtures/JavaCodeInsightTestFixture.java index be2411c7db63..c9382751e3c4 100644 --- a/java/testFramework/src/com/intellij/testFramework/fixtures/JavaCodeInsightTestFixture.java +++ b/java/testFramework/src/com/intellij/testFramework/fixtures/JavaCodeInsightTestFixture.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2019 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,9 +15,11 @@ */ package com.intellij.testFramework.fixtures; +import com.intellij.openapi.project.Project; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiPackage; import com.intellij.psi.impl.JavaPsiFacadeEx; +import com.intellij.psi.search.GlobalSearchScope; import org.intellij.lang.annotations.Language; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; @@ -30,6 +32,12 @@ public interface JavaCodeInsightTestFixture extends CodeInsightTestFixture { PsiClass addClass(@NotNull @NonNls @Language("JAVA") final String classText); + /** + * Finds class by given fully-qualified name in {@link GlobalSearchScope#allScope(Project)}. + * + * @param name Qualified name of class to find. + * @return Class instance. + */ @NotNull PsiClass findClass(@NotNull @NonNls String name);