Class RandomPortsListener
- java.lang.Object
-
- io.dropwizard.testing.DropwizardTestSupport.ServiceListener<io.dropwizard.Configuration>
-
- ru.vyarus.dropwizard.guice.test.util.RandomPortsListener
-
public class RandomPortsListener extends io.dropwizard.testing.DropwizardTestSupport.ServiceListener<io.dropwizard.Configuration>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 voidonRun(io.dropwizard.Configuration configuration, io.dropwizard.setup.Environment environment, io.dropwizard.testing.DropwizardTestSupport<io.dropwizard.Configuration> rule)
-
-
-
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:
onRunin classio.dropwizard.testing.DropwizardTestSupport.ServiceListener<io.dropwizard.Configuration>- Throws:
java.lang.Exception
-
-