I am trying to verify the pact contract on the provider side, and would like to set up the real service first and then get the service port. So basically, I want to do something below:
@TestTarget
public final Target target = new HttpTarget(port);
@Before
public void setUpService() {
port = 8090;
}
Is there a way to do it?