Skip to content

Commit

Permalink
[groovy] enables compiler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trespasserw committed Sep 28, 2016
1 parent 1cb4424 commit 2d1299a
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,13 @@ import org.jetbrains.plugins.groovy.lang.psi.GroovyFile
* @author peter
*/
@CompileStatic
abstract class GroovyCompilerTest extends GroovyCompilerTestCase {
abstract class GroovyCompilerTest extends GroovyCompilerTestCase {
@Override protected void setUp() {
super.setUp()
Logger.getInstance("#org.jetbrains.plugins.groovy.compiler.GroovyCompilerTest").info(testStartMessage)
addGroovyLibrary(myModule)
}

@Override
protected boolean shouldRunTest() {
return false
}

void testPlainGroovy() throws Throwable {
myFixture.addFileToProject("A.groovy", "println '239'")
assertEmpty(make())
Expand Down Expand Up @@ -941,7 +936,7 @@ class AppTest {
FileUtil.writeToFile(script, "import groovy.transform.*; withConfig(configuration) { ast(CompileStatic) }")

GroovyCompilerConfiguration.getInstance(project).configScript = script.path

myFixture.addFileToProject("a.groovy", "class A { int s = 'foo' }")
shouldFail { make() }
}
Expand Down Expand Up @@ -969,7 +964,5 @@ class Bar {}'''

GreclipseIdeaCompilerSettings.getSettings(project).greclipsePath = jarPath
}

}

}
}

0 comments on commit 2d1299a

Please sign in to comment.