Java Code Examples for com.github.tomakehurst.wiremock.client.WireMock#resetAllScenarios()

The following examples show how to use com.github.tomakehurst.wiremock.client.WireMock#resetAllScenarios() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CertTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 2
Source File: PKITest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 3
Source File: CertChainTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 4
Source File: PropertiesTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 5
Source File: DockerCfgTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 6
Source File: KeyValueTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 7
Source File: KeyValueV2Test.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 8
Source File: PKIChainTest.java    From vault-crd with Apache License 2.0 5 votes vote down vote up
@Before
public void before() {
    WireMock.resetAllScenarios();
    client.secrets().inAnyNamespace().delete();

    TestHelper.generateLookupSelfStub();
}
 
Example 9
Source File: RecordableTest.java    From devops-cm-client with Apache License 2.0 5 votes vote down vote up
@After
public void tearDown() {

    if(! isRecording()) {

        for(ServeEvent e : wireMockRule.getAllServeEvents())
            if(e.isNoExactMatch()) throw new RuntimeException("There was an unmatched request: " + e.getRequest().getAbsoluteUrl());

        WireMock.resetAllRequests();
        WireMock.resetAllScenarios();
    }
}
 
Example 10
Source File: WireMockConfiguration.java    From spring-cloud-contract with Apache License 2.0 5 votes vote down vote up
void resetMappings() {
	if (this.server.isRunning()) {
		this.server.resetAll();
		this.server.resetRequests();
		this.server.resetScenarios();
		WireMock.reset();
		WireMock.resetAllRequests();
		WireMock.resetAllScenarios();
		registerStubs();
		logRegisteredMappings();
	}
}