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 2018/05/19 14:55:09 UTC
[1/3] groovy git commit: move JDK8 test
Repository: groovy
Updated Branches:
refs/heads/GROOVY_2_6_X d7bf85969 -> f711e0b7a
move JDK8 test
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/26020711
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/26020711
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/26020711
Branch: refs/heads/GROOVY_2_6_X
Commit: 26020711a0665679b8412d7bad847c62bead7d7a
Parents: d7bf859
Author: Paul King <pa...@asert.com.au>
Authored: Sun May 20 00:37:37 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sun May 20 00:54:57 2018 +1000
----------------------------------------------------------------------
src/test/groovy/bugs/Groovy8579Bug.groovy | 34 --------------------
.../groovy/groovy/bugs/Groovy8579Bug.groovy | 34 ++++++++++++++++++++
2 files changed, 34 insertions(+), 34 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/26020711/src/test/groovy/bugs/Groovy8579Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy8579Bug.groovy b/src/test/groovy/bugs/Groovy8579Bug.groovy
deleted file mode 100644
index 1945e47..0000000
--- a/src/test/groovy/bugs/Groovy8579Bug.groovy
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package groovy.bugs
-
-class Groovy8579Bug extends GroovyTestCase {
- void testCallToStaticInterfaceMethod() {
- assertScript '''
- import groovy.transform.CompileStatic
-
- @CompileStatic
- Comparator myMethod() {
- Map.Entry.comparingByKey()
- }
-
- assert myMethod() instanceof Comparator
- '''
- }
-}
http://git-wip-us.apache.org/repos/asf/groovy/blob/26020711/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
----------------------------------------------------------------------
diff --git a/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy b/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
new file mode 100644
index 0000000..1945e47
--- /dev/null
+++ b/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package groovy.bugs
+
+class Groovy8579Bug extends GroovyTestCase {
+ void testCallToStaticInterfaceMethod() {
+ assertScript '''
+ import groovy.transform.CompileStatic
+
+ @CompileStatic
+ Comparator myMethod() {
+ Map.Entry.comparingByKey()
+ }
+
+ assert myMethod() instanceof Comparator
+ '''
+ }
+}
[2/3] groovy git commit: make test more robust
Posted by pa...@apache.org.
make test more robust
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/13f166b7
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/13f166b7
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/13f166b7
Branch: refs/heads/GROOVY_2_6_X
Commit: 13f166b7026051a6d0d9f9d42accc102ce7456f0
Parents: 2602071
Author: Paul King <pa...@asert.com.au>
Authored: Sun May 20 00:44:56 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sun May 20 00:54:58 2018 +1000
----------------------------------------------------------------------
src/spec/test/cli/CliBuilderTestCase.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/13f166b7/src/spec/test/cli/CliBuilderTestCase.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/cli/CliBuilderTestCase.groovy b/src/spec/test/cli/CliBuilderTestCase.groovy
index 1b6c9cc..f1fdbc3 100644
--- a/src/spec/test/cli/CliBuilderTestCase.groovy
+++ b/src/spec/test/cli/CliBuilderTestCase.groovy
@@ -73,7 +73,7 @@ abstract class CliBuilderTestCase extends GroovyTestCase {
cli.writer = new PrintWriter(sw)
cli.usage()
- assert '$expected'.normalize() == sw.toString().normalize()
+ assert '''$expected'''.normalize() == sw.toString().normalize()
"""
}
[3/3] groovy git commit: move test into vm8 package
Posted by pa...@apache.org.
move test into vm8 package
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/f711e0b7
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/f711e0b7
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/f711e0b7
Branch: refs/heads/GROOVY_2_6_X
Commit: f711e0b7a69d9e9567fbd883363eb206e8549990
Parents: 13f166b
Author: Paul King <pa...@asert.com.au>
Authored: Sun May 20 00:49:30 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sun May 20 00:54:58 2018 +1000
----------------------------------------------------------------------
.../groovy/groovy/bugs/Groovy8579Bug.groovy | 34 --------------------
.../groovy/groovy/bugs/vm8/Groovy8579Bug.groovy | 34 ++++++++++++++++++++
2 files changed, 34 insertions(+), 34 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/f711e0b7/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
----------------------------------------------------------------------
diff --git a/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy b/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
deleted file mode 100644
index 1945e47..0000000
--- a/subprojects/tests-vm8/src/test/groovy/groovy/bugs/Groovy8579Bug.groovy
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package groovy.bugs
-
-class Groovy8579Bug extends GroovyTestCase {
- void testCallToStaticInterfaceMethod() {
- assertScript '''
- import groovy.transform.CompileStatic
-
- @CompileStatic
- Comparator myMethod() {
- Map.Entry.comparingByKey()
- }
-
- assert myMethod() instanceof Comparator
- '''
- }
-}
http://git-wip-us.apache.org/repos/asf/groovy/blob/f711e0b7/subprojects/tests-vm8/src/test/groovy/groovy/bugs/vm8/Groovy8579Bug.groovy
----------------------------------------------------------------------
diff --git a/subprojects/tests-vm8/src/test/groovy/groovy/bugs/vm8/Groovy8579Bug.groovy b/subprojects/tests-vm8/src/test/groovy/groovy/bugs/vm8/Groovy8579Bug.groovy
new file mode 100644
index 0000000..bd898c5
--- /dev/null
+++ b/subprojects/tests-vm8/src/test/groovy/groovy/bugs/vm8/Groovy8579Bug.groovy
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package groovy.bugs.vm8
+
+class Groovy8579Bug extends GroovyTestCase {
+ void testCallToStaticInterfaceMethod() {
+ assertScript '''
+ import groovy.transform.CompileStatic
+
+ @CompileStatic
+ Comparator myMethod() {
+ Map.Entry.comparingByKey()
+ }
+
+ assert myMethod() instanceof Comparator
+ '''
+ }
+}