Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
It would be nice to have a helper mechanism to acquire the stub runner port of a given producer. Thinking in a similar fashion to the LocalServerPort from Spring Boot. Maybe an API that looks something like:
Using the BeerControllerTest as the basis for the example.
Stub Runner Spring registers environment variables in the following manner
Which you can reference in your code.
You can also use the
@StubRunnerPort("foo") int fooPort; @StubRunnerPort("com.example:bar") int barPort;