Author: maartenc
Date: Sun Aug 19 21:46:25 2012
New Revision: 1374859

URL: http://svn.apache.org/viewvc?rev=1374859&view=rev
Log:
Log a bit more in a junit test to see what's going wrong on unix...

Modified:
    
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java

Modified: 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java?rev=1374859&r1=1374858&r2=1374859&view=diff
==============================================================================
--- 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java
 (original)
+++ 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java
 Sun Aug 19 21:46:25 2012
@@ -46,7 +46,9 @@ import org.apache.ivy.plugins.matcher.Gl
 import org.apache.ivy.plugins.matcher.PatternMatcher;
 import org.apache.ivy.plugins.parser.AbstractModuleDescriptorParserTester;
 import org.apache.ivy.plugins.resolver.FileSystemResolver;
+import org.apache.ivy.util.DefaultMessageLogger;
 import org.apache.ivy.util.FileUtil;
+import org.apache.ivy.util.Message;
 import org.apache.ivy.util.XMLHelper;
 
 public class XmlModuleDescriptorParserTest extends 
AbstractModuleDescriptorParserTester {
@@ -55,6 +57,8 @@ public class XmlModuleDescriptorParserTe
     protected void setUp() throws Exception {
         super.setUp();
         
+        Message.setDefaultLogger(new DefaultMessageLogger(Message.MSG_WARN));
+        
         this.settings = new IvySettings();
         //prevent test from polluting local cache
         settings.setDefaultCache(new File("build/cache"));
@@ -1023,6 +1027,8 @@ public class XmlModuleDescriptorParserTe
     }
     
     public void testExtendsAll() throws Exception {
+        Message.setDefaultLogger(new DefaultMessageLogger(99));
+        
         //default extends type is 'all' when no extendsType attribute is 
specified.
         ModuleDescriptor md = 
XmlModuleDescriptorParser.getInstance().parseDescriptor(settings,
             getClass().getResource("test-extends-all.xml"), true);


Reply via email to