Class RandomPortsListener


  • public class RandomPortsListener
    extends io.dropwizard.testing.DropwizardTestSupport.ServiceListener<io.dropwizard.Configuration>
    Applies random ports to test application.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onRun​(io.dropwizard.Configuration configuration, io.dropwizard.setup.Environment environment, io.dropwizard.testing.DropwizardTestSupport<io.dropwizard.Configuration> rule)  
      • Methods inherited from class io.dropwizard.testing.DropwizardTestSupport.ServiceListener

        onStop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomPortsListener

        public RandomPortsListener()
    • Method Detail

      • onRun

        public void onRun​(io.dropwizard.Configuration configuration,
                          io.dropwizard.setup.Environment environment,
                          io.dropwizard.testing.DropwizardTestSupport<io.dropwizard.Configuration> rule)
                   throws java.lang.Exception
        Overrides:
        onRun in class io.dropwizard.testing.DropwizardTestSupport.ServiceListener<io.dropwizard.Configuration>
        Throws:
        java.lang.Exception