Author: bago
Date: Sat Aug  9 04:03:50 2008
New Revision: 684224

URL: http://svn.apache.org/viewvc?rev=684224&view=rev
Log:
Make sure we fail with "Error" when the fake server initialization returns an 
error. (previously a bound exception like address already in use made the whole 
testsuite to return misleading failures)

Modified:
    
james/jspf/branches/multimodule-proposal/resolver/src/test/java/org/apache/james/jspf/AbstractYamlTest.java

Modified: 
james/jspf/branches/multimodule-proposal/resolver/src/test/java/org/apache/james/jspf/AbstractYamlTest.java
URL: 
http://svn.apache.org/viewvc/james/jspf/branches/multimodule-proposal/resolver/src/test/java/org/apache/james/jspf/AbstractYamlTest.java?rev=684224&r1=684223&r2=684224&view=diff
==============================================================================
--- 
james/jspf/branches/multimodule-proposal/resolver/src/test/java/org/apache/james/jspf/AbstractYamlTest.java
 (original)
+++ 
james/jspf/branches/multimodule-proposal/resolver/src/test/java/org/apache/james/jspf/AbstractYamlTest.java
 Sat Aug  9 04:03:50 2008
@@ -341,11 +341,9 @@
             try {
                 dnsTestServer = new DNSTestingServer("0.0.0.0", 
""+FAKE_SERVER_PORT);
             } catch (TextParseException e) {
-                // TODO Auto-generated catch block
-                e.printStackTrace();
+                throw new RuntimeException("Error trying to instantiate the 
testing dns server.", e);
             } catch (IOException e) {
-                // TODO Auto-generated catch block
-                e.printStackTrace();
+                throw new RuntimeException("Error trying to instantiate the 
testing dns server.", e);
             }
         }
         



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to