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