Class AbstractClientServerTestBase

java.lang.Object
org.apache.cxf.testutil.common.AbstractClientServerTestBase
Direct Known Subclasses:
AbstractBusClientServerTestBase

public abstract class AbstractClientServerTestBase extends Object
  • Constructor Details

    • AbstractClientServerTestBase

      public AbstractClientServerTestBase()
  • Method Details

    • stopAllServers

      public static void stopAllServers() throws Exception
      Throws:
      Exception
    • launchServer

      public static boolean launchServer(AbstractTestServerBase base)
      Starts the server inProcess
    • launchServer

      public static boolean launchServer(Class<?> clz)
      Starts the server inProcess
    • launchServer

      public static boolean launchServer(Class<?> clz, boolean inProcess)
      Starts the server inProcess or out of process depending on the param
    • launchServer

      public static boolean launchServer(Class<?> clz, Map<String,String> props, String[] args)
      Starts the server inProcess
    • launchServer

      public static boolean launchServer(Class<?> clz, Map<String,String> props, String[] args, boolean inProcess)
      Starts the server inProcess or out of process depending on the param
    • setAddress

      protected void setAddress(Object o, String address)
    • updateAddressPort

      protected void updateAddressPort(Object o, String port) throws NumberFormatException, MalformedURLException
      Throws:
      NumberFormatException
      MalformedURLException
    • allocatePort

      protected static String allocatePort(String s)
    • allocatePort

      protected static String allocatePort(Class<?> cls)
    • allocatePort

      protected static String allocatePort(Class<?> cls, int count)