ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1296761 - /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
Date Sun, 04 Mar 2012 06:39:54 GMT
Author: maartenc
Date: Sun Mar  4 06:39:54 2012
New Revision: 1296761

URL: http://svn.apache.org/viewvc?rev=1296761&view=rev
Log:
Attempt to fix failing tests on vmgump.

Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java?rev=1296761&r1=1296760&r2=1296761&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
(original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
Sun Mar  4 06:39:54 2012
@@ -19,12 +19,21 @@ package org.apache.ivy.plugins.version;
 
 import junit.framework.TestCase;
 
+import org.apache.ivy.core.IvyContext;
 import org.apache.ivy.core.module.id.ModuleRevisionId;
 import org.apache.ivy.core.module.status.Status;
 import org.apache.ivy.core.module.status.StatusManager;
 
 public class LatestVersionMatcherTest extends TestCase {
     private LatestVersionMatcher vm = new LatestVersionMatcher();
+    
+    protected void setUp() {
+        IvyContext.pushNewContext();
+    }
+    
+    protected void tearDown() {
+        IvyContext.popContext();
+    }
 
     public void testNeedModuleDescriptorStandardStatus() throws Exception {
         assertNeed("latest.release", true);



Mime
View raw message