groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 02/07: minor refactor: rename for consistency and remove some redundant modifiers
Date Fri, 22 Mar 2019 01:41:27 GMT
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

commit 2ea0e96efd39f1e447d787205c777f85cbd046bc
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri Mar 22 09:45:16 2019 +1000

    minor refactor: rename for consistency and remove some redundant modifiers
---
 ...enerListASTTest.groovy => ListenerListTransformTest.groovy} | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/groovy/beans/ListenerListASTTest.groovy b/src/test/groovy/beans/ListenerListTransformTest.groovy
similarity index 98%
rename from src/test/groovy/beans/ListenerListASTTest.groovy
rename to src/test/groovy/beans/ListenerListTransformTest.groovy
index d36f66b..93e5ed1 100644
--- a/src/test/groovy/beans/ListenerListASTTest.groovy
+++ b/src/test/groovy/beans/ListenerListTransformTest.groovy
@@ -22,9 +22,9 @@ package groovy.beans
  * Unit test for ListenerList.
  */
 
-class ListenerListASTTest extends GroovyTestCase {
+class ListenerListTransformTest extends GroovyTestCase {
 
-    public void testDefaultFireAndName() {
+    void testDefaultFireAndName() {
         GroovyShell shell = new GroovyShell()
         def tc = shell.evaluate("""
             import groovy.beans.*
@@ -52,7 +52,7 @@ class ListenerListASTTest extends GroovyTestCase {
         assert evt.message.is(message)
     }
 
-    public void testCustomFireAndName() {
+    void testCustomFireAndName() {
         GroovyShell shell = new GroovyShell()
         def tc = shell.evaluate("""
             package b
@@ -85,7 +85,7 @@ class ListenerListASTTest extends GroovyTestCase {
         assert evt.message.is(message)
     }
 
-    public void testMultipleMethodListener() {
+    void testMultipleMethodListener() {
         GroovyShell shell = new GroovyShell()
         def tc = shell.evaluate("""
             package b
@@ -120,7 +120,7 @@ class ListenerListASTTest extends GroovyTestCase {
         assert evt2.message.is(message2)
     }
 
-    public void testMultipleListenersConflictsDetected() {
+    void testMultipleListenersConflictsDetected() {
         def message = shouldFail {
             new GroovyShell().evaluate("""
                 package b


Mime
View raw message