You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2008/08/09 13:03:51 UTC

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

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org