Class RandomPortsListener<C extends io.dropwizard.core.Configuration>

java.lang.Object
io.dropwizard.testing.DropwizardTestSupport.ServiceListener<C>
ru.vyarus.dropwizard.guice.test.util.RandomPortsListener<C>
Type Parameters:
C - configuration type

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRun(C configuration, io.dropwizard.core.setup.Environment environment, io.dropwizard.testing.DropwizardTestSupport<C> 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 Details

    • RandomPortsListener

      public RandomPortsListener()
  • Method Details

    • onRun

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