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 2019/11/12 00:26:09 UTC

[groovy] branch GROOVY_2_5_X updated: port for GROOVY_2_5_X

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new a99dd7d  port for GROOVY_2_5_X
a99dd7d is described below

commit a99dd7d4b2358c40b9acb2b1ca5b9d0cfee063d3
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Nov 12 10:23:35 2019 +1000

    port for GROOVY_2_5_X
---
 .../groovy/transform/NotYetImplementedTransformTest.groovy        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-test/src/test/groovy/org/codehaus/groovy/transform/NotYetImplementedTransformTest.groovy b/subprojects/groovy-test/src/test/groovy/org/codehaus/groovy/transform/NotYetImplementedTransformTest.groovy
index 4365012..bce0fa9 100644
--- a/subprojects/groovy-test/src/test/groovy/org/codehaus/groovy/transform/NotYetImplementedTransformTest.groovy
+++ b/subprojects/groovy-test/src/test/groovy/org/codehaus/groovy/transform/NotYetImplementedTransformTest.groovy
@@ -136,7 +136,7 @@ class NotYetImplementedTransformTest extends GroovyShellTestCase {
     void testNotYetImplementedJUnit4Failure_atCompileStatic()  {
         def output = shell.evaluate('''
             import groovy.transform.CompileStatic
-            import groovy.test.NotYetImplemented
+            import groovy.transform.NotYetImplemented
             import org.junit.Test
             import org.junit.runner.JUnitCore
 
@@ -158,7 +158,7 @@ class NotYetImplementedTransformTest extends GroovyShellTestCase {
     void testNotYetImplementedJUnit4Success_atCompileStatic() {
         def output = shell.evaluate('''
             import groovy.transform.CompileStatic
-            import groovy.test.NotYetImplemented
+            import groovy.transform.NotYetImplemented
             import org.junit.Test
             import org.junit.runner.JUnitCore
 
@@ -170,8 +170,8 @@ class NotYetImplementedTransformTest extends GroovyShellTestCase {
             }
 
             new JUnitCore().run(MyTests)
-            assert output.failureCount == 1 : 'Passing @CompileStatic @Test method marked with @NotYetImplemented should fail'
-            assert output.failures.first().exception instanceof AssertionFailedError : 'Passing @CompileStatic @Test method marked with @NotYetImplemented should throw an AssertionFailedError'
         ''')
+        assert output.failureCount == 1 : 'Passing @CompileStatic @Test method marked with @NotYetImplemented should fail'
+        assert output.failures.first().exception instanceof AssertionFailedError : 'Passing @CompileStatic @Test method marked with @NotYetImplemented should throw an AssertionFailedError'
     }
 }
\ No newline at end of file