You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/03/03 21:08:11 UTC
[2/3] groovy git commit: make javadoc assertion tests more visible by
directly running JavadocAssertionTestSuite rather than running it via a
TestRunner
make javadoc assertion tests more visible by directly running JavadocAssertionTestSuite rather than running it via a TestRunner
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/84e86678
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/84e86678
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/84e86678
Branch: refs/heads/GROOVY_2_4_X
Commit: 84e86678b54972b3a71f54abfdb837b568d331a9
Parents: 457b08a
Author: pascalschumacher <pa...@gmx.net>
Authored: Thu Mar 3 20:21:40 2016 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Thu Mar 3 20:59:35 2016 +0100
----------------------------------------------------------------------
src/test/MainJavadocAssertionTest.groovy | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/84e86678/src/test/MainJavadocAssertionTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/MainJavadocAssertionTest.groovy b/src/test/MainJavadocAssertionTest.groovy
index f261d62..7405ff8 100644
--- a/src/test/MainJavadocAssertionTest.groovy
+++ b/src/test/MainJavadocAssertionTest.groovy
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-import junit.textui.TestRunner
-class MainJavadocAssertionTest extends GroovyTestCase {
- // TODO simplify by having suite directly included rather than via TestRunner
- void testGroovyDoc() {
- assert TestRunner.run(JavadocAssertionTestSuite.suite()).wasSuccessful()
- }
+import org.junit.runners.Suite
+import org.junit.runner.RunWith
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses(JavadocAssertionTestSuite.class)
+class MainJavadocAssertionTest {
}