This commit is contained in:
Sergey Ignatov
2014-06-26 12:14:57 +04:00
parent 299180f97d
commit e66d6cd6fb
8 changed files with 16 additions and 8 deletions
@@ -461,7 +461,7 @@ class Foo {
}
@Override
protected void invokeTestRunnable(final Runnable runnable) throws Exception {
protected void invokeTestRunnable(@NotNull final Runnable runnable) throws Exception {
if (name in ["testNavigationActionsDontTerminateTemplate", "testTemplateWithEnd", "testDisappearingVar", "test escape string characters in soutv"]) {
runnable.run();
return;
@@ -23,6 +23,8 @@ import com.intellij.psi.PsiFile
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
import com.intellij.util.Consumer
import com.intellij.util.concurrency.Semaphore
import org.jetbrains.annotations.NotNull
/**
* @author peter
*/
@@ -240,7 +242,7 @@ class Intf {
}
@Override
protected void invokeTestRunnable(Runnable runnable) throws Exception {
protected void invokeTestRunnable(@NotNull Runnable runnable) throws Exception {
runnable.run()
}
}
@@ -25,10 +25,11 @@ import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.impl.source.tree.LazyParseableElement;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import org.jetbrains.annotations.NotNull;
public class MiscPsiTest extends LightCodeInsightFixtureTestCase {
@Override
protected void invokeTestRunnable(final Runnable runnable) throws Exception {
protected void invokeTestRunnable(@NotNull final Runnable runnable) throws Exception {
new WriteCommandAction.Simple(getProject()) {
@Override
protected void run() throws Throwable {