You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2012/03/04 07:39:54 UTC
svn commit: r1296761 -
/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
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);