mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[unit perf tests] AT-644 Removed expected time from the tests
GitOrigin-RevId: a53f40c1721a46c7833018346dc622dec1f1b80a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1d5c04b55f
commit
b143fe1540
@@ -14,7 +14,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
|
||||
final String testName = getTestName(true);
|
||||
loadToPsiFile("/performance/" + testName + "/lombok.config");
|
||||
final PsiFile psiFile = loadToPsiFile("/performance/" + testName + "/HugeClass.java");
|
||||
PlatformTestUtil.startPerformanceTest(getTestName(false), 500, () -> {
|
||||
PlatformTestUtil.startPerformanceTest(getTestName(false), () -> {
|
||||
type(' ');
|
||||
PsiDocumentManager.getInstance(getProject()).commitDocument(getEditor().getDocument());
|
||||
((PsiJavaFileImpl)psiFile).getClasses()[0].getFields()[0].hasModifierProperty(PsiModifier.FINAL);
|
||||
@@ -34,7 +34,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
|
||||
}
|
||||
|
||||
public void testGeneratedCode() {
|
||||
PlatformTestUtil.startPerformanceTest("300 unrelated methods", 60000, () -> {
|
||||
PlatformTestUtil.startPerformanceTest("300 unrelated methods", () -> {
|
||||
StringBuilder text = new StringBuilder("import lombok.Getter; import lombok.Setter; @interface Tolerate{} class Foo {");
|
||||
for (int i = 0; i < 200; i++) {
|
||||
text.append("@Getter @Setter int bar").append(i).append(";");
|
||||
@@ -57,7 +57,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
|
||||
}
|
||||
|
||||
public void testGeneratedCodeThroughStubs() {
|
||||
PlatformTestUtil.startPerformanceTest("200 unrelated methods", 20000, () -> {
|
||||
PlatformTestUtil.startPerformanceTest("200 unrelated methods", () -> {
|
||||
StringBuilder text = new StringBuilder("import lombok.Getter; import lombok.Setter; @interface Tolerate{} class Foo {");
|
||||
for (int i = 0; i < 200; i++) {
|
||||
text.append("@Getter @Setter int bar").append(i).append(";");
|
||||
@@ -101,7 +101,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
|
||||
classText.append("}");
|
||||
}
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("@Data/@EqualsAndHashCode/@ToString performance", 30000, () -> {
|
||||
PlatformTestUtil.startPerformanceTest("@Data/@EqualsAndHashCode/@ToString performance", () -> {
|
||||
myFixture.configureByText("Bar.java", classText.toString());
|
||||
myFixture.checkHighlighting();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user