Class AbstractTestServerBase

    • Constructor Detail

      • AbstractTestServerBase

        public AbstractTestServerBase()
    • Method Detail

      • run

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

        protected Logger getLog()
      • 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)