Class AbstractTestServerBase

java.lang.Object
org.apache.cxf.testutil.common.AbstractTestServerBase
Direct Known Subclasses:
AbstractBusTestServerBase, AbstractServerTestServerBase

public abstract class AbstractTestServerBase extends Object
  • Constructor Details

    • AbstractTestServerBase

      public AbstractTestServerBase()
  • Method Details

    • run

      protected abstract void run() throws Exception
      method implemented by test servers. Initialise servants and publish endpoints etc.
      Throws:
      Exception
    • getLog

      protected Logger getLog()
    • startInProcess

      public void startInProcess() throws Exception
      Throws:
      Exception
    • stopInProcess

      public boolean stopInProcess() throws Exception
      Throws:
      Exception
    • start

      public void start() throws Exception
      Throws:
      Exception
    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • ready

      protected void ready()
    • startFailed

      protected void startFailed()
    • verify

      protected boolean verify(Logger log)
      Used to facilitate assertions on server-side behaviour.
      Parameters:
      log - logger to use for diagnostics if assertions fail
      Returns:
      true if assertions hold
    • allocatePortAsInt

      protected static int allocatePortAsInt(Class<?> cls)
    • allocatePort

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

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