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 2015/07/12 19:15:42 UTC

incubator-groovy git commit: activate some tests

Repository: incubator-groovy
Updated Branches:
  refs/heads/master a9f32d156 -> ad43ad456


activate some tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/ad43ad45
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/ad43ad45
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/ad43ad45

Branch: refs/heads/master
Commit: ad43ad456b3c9828fc538c95998d9e6509700222
Parents: a9f32d1
Author: pascalschumacher <pa...@gmx.net>
Authored: Sun Jul 12 19:15:26 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sun Jul 12 19:15:26 2015 +0200

----------------------------------------------------------------------
 src/test/groovy/lang/MetaClassRegistryTest.groovy        |  2 +-
 src/test/groovy/lang/MixinTest.groovy                    |  2 +-
 .../CacheCleanupCollectedSoftReferencesTest.groovy       | 11 ++---------
 3 files changed, 4 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/ad43ad45/src/test/groovy/lang/MetaClassRegistryTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/lang/MetaClassRegistryTest.groovy b/src/test/groovy/lang/MetaClassRegistryTest.groovy
index eadb9a7..120bb4c 100644
--- a/src/test/groovy/lang/MetaClassRegistryTest.groovy
+++ b/src/test/groovy/lang/MetaClassRegistryTest.groovy
@@ -93,7 +93,7 @@ class MetaClassRegistryTest extends GroovyTestCase {
         Integer.metaClass = null
     }
 
-    void _testIteratorRemove() {
+    void testIteratorRemove() {
         Integer.metaClass.foo {-> 1 }
         assert 1.foo() == 1
         for (def it = registry.iterator(); it.hasNext();) {

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/ad43ad45/src/test/groovy/lang/MixinTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/lang/MixinTest.groovy b/src/test/groovy/lang/MixinTest.groovy
index c7a02d3..33dd64e 100644
--- a/src/test/groovy/lang/MixinTest.groovy
+++ b/src/test/groovy/lang/MixinTest.groovy
@@ -157,7 +157,7 @@ class MixinTest extends GroovyTestCase {
         Object.metaClass = null
     }
 
-    void _testMixingLockable() {
+    void testMixingLockable() {
         Object.metaClass.mixin ReentrantLock
         def name = "abcdef"
         name.lock()

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/ad43ad45/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy b/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
index bf56f15..1f631ff 100644
--- a/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
+++ b/src/test/org/codehaus/groovy/runtime/memoize/CacheCleanupCollectedSoftReferencesTest.groovy
@@ -23,13 +23,7 @@ package org.codehaus.groovy.runtime.memoize
  */
 public class CacheCleanupCollectedSoftReferencesTest extends GroovyTestCase {   
 
-    // TODO delete this once another test below is re-enabled
-    public void testNothing_dummyTestToKeepJUnitTestCollectorHappy() {
-        assert true
-    }
-
-    // TODO re-enable this test once CI server can safely handle it
-    public void manual_testCollectedCacheValuesAreEnqueued() {
+    void testCollectedCacheValuesAreEnqueued() {
 
         Closure cl = { 
             new Integer(it + 1) 
@@ -49,8 +43,7 @@ public class CacheCleanupCollectedSoftReferencesTest extends GroovyTestCase {
         checkCollectedSoftReferenceAreEnqueued(softReference)
     }
 
-    // TODO re-enable this test once CI server can safely handle it
-    public void manual_testCollectedCacheValuesAreRemovedFromCache() {
+    void testCollectedCacheValuesAreRemovedFromCache() {
 
         Closure cl = { 
             new Integer(it + 1)