@@ -20,11 +20,14 @@ package org.codehaus.groovy.tools.stubgenerator
2020
2121import com.thoughtworks.qdox.JavaProjectBuilder
2222import com.thoughtworks.qdox.model.JavaClass
23+ import groovy.test.GroovyTestCase
24+ import junit.framework.TestCase
2325import org.codehaus.groovy.control.CompilationFailedException
2426import org.codehaus.groovy.control.CompilerConfiguration
2527import org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit
2628import org.junit.jupiter.api.AfterEach
2729import org.junit.jupiter.api.BeforeEach
30+ import org.junit.jupiter.api.Test
2831
2932import static groovy.io.FileType.FILES
3033import static org.junit.jupiter.api.Assertions.fail
@@ -66,8 +69,8 @@ abstract class StubTestCase {
6669 protected GroovyClassLoader loader
6770 protected CompilerConfiguration config
6871
69- protected boolean debug = false ;
70- protected boolean delete = true ;
72+ protected boolean debug = false
73+ protected boolean delete = true
7174
7275 /**
7376 * Prepares the target and stub directories.
@@ -139,6 +142,7 @@ abstract class StubTestCase {
139142 * Sole JUnit test method which will delegate to the <code >verifyStubs()</code> method
140143 * in the subclasses of <code >StubTestCase</code>.
141144 */
145+ @Test
142146 void testRun () {
143147 init()
144148 configure()
@@ -230,7 +234,7 @@ abstract class StubTestCase {
230234 loader = new GroovyClassLoader (this . class. classLoader). tap {
231235 addURL(this . class. location)
232236 addURL(GroovyTestCase . location)
233- addURL(junit.framework. TestCase. location)
237+ addURL(TestCase . location)
234238 }
235239 def cu = new JavaAwareCompilationUnit (config, loader)
236240 cu. addSources(sources as File [])
0 commit comments