diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/SmartTypeCompletionTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/SmartTypeCompletionTest.java index 61feb59619ab..4fa6040d0071 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/SmartTypeCompletionTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/SmartTypeCompletionTest.java @@ -1,6 +1,4 @@ -// Copyright 2000-2017 JetBrains s.r.o. -// Use of this source code is governed by the Apache 2.0 license that can be -// found in the LICENSE.txt file. +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.java.codeInsight.completion; import com.intellij.JavaTestUtil; @@ -16,6 +14,7 @@ import com.intellij.codeInsight.template.Template; import com.intellij.codeInsight.template.TemplateContextType; import com.intellij.codeInsight.template.TemplateManager; import com.intellij.codeInsight.template.impl.TemplateImpl; +import com.intellij.idea.Bombed; import com.intellij.lang.java.JavaLanguage; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.psi.PsiClass; @@ -25,6 +24,8 @@ import com.intellij.psi.codeStyle.JavaCodeStyleSettings; import com.intellij.testFramework.fixtures.CodeInsightTestUtil; import com.intellij.util.containers.ContainerUtil; +import java.util.Calendar; + public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { @Override @@ -95,7 +96,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { configureByFile(path + "/before6.java"); checkResultByFile(path + "/after6.java"); } - + public void testParenAfterCall1_SpaceWithinMethodCallParens() { String path = "/parenAfterCall"; @@ -401,7 +402,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { public void testConstructorWithExistingParens() { doTest(); } public void testMethodAnnotationNamedParameter() { doTest(); } - + public void testInheritedClass() { doTest(); } public void testClassLiteralInAnno1() { doTest(); } @@ -660,7 +661,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { //todo 2nd completion public void _testDefaultAnnoParam2() { doTest(); } - + public void testAnnotationValue() {doTest(); } public void testLiveTemplate() { @@ -838,7 +839,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { assertInstanceOf(item.getPsiElement(), PsiClass.class); } - + public void testNoClassLiteral() { doActionTest(); assertStringItems("Object.class", "getClass", "forName", "forName"); @@ -913,7 +914,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { public void testAnnotation6() { configureByTestName(); - + assertStringItems("ElementType.ANNOTATION_TYPE", "ElementType.CONSTRUCTOR", "ElementType.FIELD", "ElementType.LOCAL_VARIABLE", "ElementType.METHOD", "ElementType.PACKAGE", "ElementType.PARAMETER", @@ -1046,6 +1047,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { } public void testEnumAsDefaultAnnotationParam() { doTest(); } + @Bombed(user = "roman.shevchenko@jetbrains.com", day = 22, month = Calendar.NOVEMBER) public void testBreakLabel() { doTest(); } public void testNewAbstractInsideAnonymous() { doTest(); } @@ -1065,7 +1067,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { public void testCaseMissingEnumValue() { doTest(); } public void testCaseMissingEnumValue2() { doTest(); } - + public void testNoHiddenParameter() { doTest(); } public void testTypeVariableInstanceOf() { @@ -1171,7 +1173,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase { doFirstItemTest('\t'); } - public void testSuggestMethodReturnType() { + public void testSuggestMethodReturnType() { configureByTestName(); myFixture.assertPreferredCompletionItems(0, "Serializable", "CharSequence", "Object"); } diff --git a/platform/structuralsearch/testSource/com/intellij/structuralsearch/JavaPredefinedConfigurationsTest.java b/platform/structuralsearch/testSource/com/intellij/structuralsearch/JavaPredefinedConfigurationsTest.java index 257cdf6f4854..890c5a7c8d94 100644 --- a/platform/structuralsearch/testSource/com/intellij/structuralsearch/JavaPredefinedConfigurationsTest.java +++ b/platform/structuralsearch/testSource/com/intellij/structuralsearch/JavaPredefinedConfigurationsTest.java @@ -1,11 +1,13 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.structuralsearch; +import com.intellij.idea.Bombed; import com.intellij.openapi.fileTypes.StdFileTypes; import com.intellij.psi.PsiElement; import com.intellij.structuralsearch.plugin.ui.Configuration; import com.intellij.structuralsearch.plugin.ui.SearchConfiguration; +import java.util.Calendar; import java.util.List; import java.util.Map; import java.util.function.Function; @@ -16,7 +18,7 @@ import java.util.stream.Stream; * @author Bas Leijdekkers */ public class JavaPredefinedConfigurationsTest extends StructuralSearchTestCase { - + @Bombed(user = "roman.shevchenko@jetbrains.com", day = 22, month = Calendar.NOVEMBER) public void testAll() { final Configuration[] templates = JavaPredefinedConfigurations.createPredefinedTemplates(); final Map configurationMap = Stream.of(templates).collect(Collectors.toMap(Configuration::getName, x -> x)); diff --git a/platform/structuralsearch/testSource/com/intellij/structuralsearch/StructuralSearchTest.java b/platform/structuralsearch/testSource/com/intellij/structuralsearch/StructuralSearchTest.java index 8e5c54c9216e..364f96fccac7 100644 --- a/platform/structuralsearch/testSource/com/intellij/structuralsearch/StructuralSearchTest.java +++ b/platform/structuralsearch/testSource/com/intellij/structuralsearch/StructuralSearchTest.java @@ -1,6 +1,7 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.structuralsearch; +import com.intellij.idea.Bombed; import com.intellij.openapi.fileTypes.FileType; import com.intellij.openapi.fileTypes.StdFileTypes; import com.intellij.psi.*; @@ -10,6 +11,7 @@ import org.jetbrains.annotations.NotNull; import java.io.IOException; import java.util.ArrayList; +import java.util.Calendar; import java.util.List; /** @@ -2987,6 +2989,7 @@ public class StructuralSearchTest extends StructuralSearchTestCase { assertEquals("Find statement label variable", 2, findMatchesCount(s, "'_l : '_s;")); } + @Bombed(user = "roman.shevchenko@jetbrains.com", day = 22, month = Calendar.NOVEMBER) public void testFindBreakContinue() { final String s = "class X {" + " void m() {" +