mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] tests: make setUp/tearDown public
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 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.
|
||||
@@ -34,6 +34,16 @@ public abstract class LightGroovyTestCase extends LightCodeInsightFixtureTestCas
|
||||
myFixture
|
||||
}
|
||||
|
||||
@Override
|
||||
void setUp() throws Exception {
|
||||
super.setUp()
|
||||
}
|
||||
|
||||
@Override
|
||||
void tearDown() throws Exception {
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 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.
|
||||
@@ -33,7 +33,7 @@ public abstract class GroovyResolveTestCase extends LightGroovyTestCase {
|
||||
@NonNls protected static final String MARKER = "<ref>";
|
||||
|
||||
@Override
|
||||
protected void setUp() {
|
||||
void setUp() {
|
||||
super.setUp();
|
||||
if (new File("$myFixture.testDataPath/${getTestName(true)}").exists()) {
|
||||
myFixture.copyDirectoryToProject(getTestName(true), "");
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 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.
|
||||
@@ -30,7 +30,7 @@ abstract class TypeInferenceTestBase extends GroovyResolveTestCase {
|
||||
final String basePath = TestUtils.testDataPath + "resolve/inference/"
|
||||
|
||||
@Override
|
||||
protected void setUp() {
|
||||
void setUp() {
|
||||
super.setUp()
|
||||
|
||||
myFixture.addClass("package java.math; public class BigDecimal extends Number implements Comparable<BigDecimal> {}");
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 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.
|
||||
@@ -35,14 +35,14 @@ public class OptimizeImportsTest extends LightGroovyTestCase {
|
||||
final String basePath = "${TestUtils.testDataPath}optimizeImports/"
|
||||
|
||||
@Override
|
||||
protected void setUp() {
|
||||
void setUp() {
|
||||
super.setUp()
|
||||
CodeInsightSettings.instance.OPTIMIZE_IMPORTS_ON_THE_FLY = true
|
||||
((CodeInsightTestFixtureImpl)myFixture).canChangeDocumentDuringHighlighting(true)
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() {
|
||||
void tearDown() {
|
||||
CodeInsightSettings.instance.OPTIMIZE_IMPORTS_ON_THE_FLY = false
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user