From 00edee2a03180330bb2f8cfd00fbfc53cbe65632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 11 Apr 2019 16:36:25 +0200 Subject: [PATCH] JavaCodeInsightTestFixture: javadoc --- .../fixtures/JavaCodeInsightTestFixture.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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);