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 RandomPortsListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRun(C configuration, io.dropwizard.core.setup.Environment environment, io.dropwizard.testing.DropwizardTestSupport<C> rule)
-
-
-
Method Detail
-
onRun
public void onRun(C configuration, io.dropwizard.core.setup.Environment environment, io.dropwizard.testing.DropwizardTestSupport<C> rule) throws java.lang.Exception
- Overrides:
onRun
in classio.dropwizard.testing.DropwizardTestSupport.ServiceListener<C extends io.dropwizard.core.Configuration>
- Throws:
java.lang.Exception
-
-