Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4f3131d

Browse filesBrowse files
authored
Update WireMockRule.java
1 parent 5b92c20 commit 4f3131d
Copy full SHA for 4f3131d

File tree

Expand file treeCollapse file tree

1 file changed

+22
-12
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+22
-12
lines changed

‎src/test/java/org/kohsuke/github/junit/WireMockRule.java

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/junit/WireMockRule.java
+22-12Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -613,18 +613,6 @@ public void resetScenarios() {
613613
wireMockServer.resetScenarios();
614614
}
615615

616-
/**
617-
* Set scenario state
618-
*
619-
* @param name
620-
* the name
621-
* @param state
622-
* the state
623-
*/
624-
public void setScenarioState(String name, String state) {
625-
wireMockServer.setScenarioState(name, state);
626-
}
627-
628616
/**
629617
* Reset mappings.
630618
*/
@@ -723,6 +711,28 @@ public GetScenariosResult getAllScenarios() {
723711
return wireMockServer.getAllScenarios();
724712
}
725713

714+
/**
715+
* Reset a scenario
716+
*
717+
* @param name
718+
* the name
719+
*/
720+
public void resetScenario(String name) {
721+
wireMockServer.resetScenario(name);
722+
}
723+
724+
/**
725+
* Set scenario state
726+
*
727+
* @param name
728+
* the name
729+
* @param state
730+
* the state
731+
*/
732+
public void setScenarioState(String name, String state) {
733+
wireMockServer.setScenarioState(name, state);
734+
}
735+
726736
/**
727737
* Find top near misses for.
728738
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.