[groovy] tests: make setUp/tearDown public

This commit is contained in:
Daniil Ovchinnikov
2016-03-15 22:17:04 +03:00
parent d9cbc98a49
commit e1df0defde
4 changed files with 18 additions and 8 deletions
@@ -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() {
@@ -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), "");
@@ -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> {}");
@@ -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()
}