jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1559815 - /jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java
Date Mon, 20 Jan 2014 19:43:53 GMT
Author: jukka
Date: Mon Jan 20 19:43:53 2014
New Revision: 1559815

URL: http://svn.apache.org/r1559815
Log:
OAK-12: Implement a test suite for the MicroKernel

Don't swallow the root cause of ClientServerFixture startup errors

Modified:
    jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java

Modified: jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java?rev=1559815&r1=1559814&r2=1559815&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java
(original)
+++ jackrabbit/oak/trunk/oak-it/mk/src/test/java/org/apache/jackrabbit/mk/test/ClientServerFixture.java
Mon Jan 20 19:43:53 2014
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.mk.test;
 
-import java.io.IOException;
 import java.net.InetSocketAddress;
 
 import org.apache.jackrabbit.mk.api.MicroKernel;
@@ -35,14 +34,10 @@ public class ClientServerFixture impleme
     }
 
     @Override
-    public void setUpCluster(MicroKernel[] cluster) {
+    public void setUpCluster(MicroKernel[] cluster) throws Exception {
         mk = new MicroKernelImpl();
         server = new Server(mk);
-        try {
-            server.start();
-        } catch (IOException e) {
-            throw new IllegalArgumentException(e.getMessage());
-        }
+        server.start();
 
         InetSocketAddress address = server.getAddress();
         cluster[0] = new Client(address);



Mime
View raw message