public class PippoRule
extends java.lang.Object
implements org.junit.rules.TestRule
| Constructor and Description |
|---|
PippoRule(Application application)
This constructor dynamically allocates a free port.
|
PippoRule(Application application,
java.lang.Integer port) |
PippoRule(Pippo pippo) |
PippoRule(Pippo pippo,
java.lang.Integer port) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
Application |
getApplication()
Useful in case that you want to mock some services via setters.
|
protected void |
initRestAssured() |
void |
startPippo() |
void |
stopPippo() |
public PippoRule(Application application)
public PippoRule(Application application, java.lang.Integer port)
public PippoRule(Pippo pippo)
public PippoRule(Pippo pippo, java.lang.Integer port)
public Application getApplication()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic void startPippo()
public void stopPippo()
protected void initRestAssured()
Copyright © 2023. All rights reserved.