public class MockServerRule
extends org.mockserver.junit.MockServerRule
MockServerRule:
perTestSuite is set to true. The original implementation, even
when mock server is reused, calls PortFactory.findFreePort() in the constructor. This call is
unnecessary ans slows down the test.
Level.WARN. With Level.INFO there were too many
logged lines and builds were crashing on Bamboo.
| Constructor and Description |
|---|
MockServerRule(Object target) |
MockServerRule(Object target,
boolean perTestSuite) |
MockServerRule(Object target,
boolean perTestSuite,
org.slf4j.event.Level logLevel) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
Copyright © 2023 Atlassian. All rights reserved.