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 de97437

Browse filesBrowse files
authored
Merge pull request hub4j#1563 from hub4j/dependabot/maven/com.github.tomakehurst-wiremock-jre8-standalone-2.35.0
Chore(deps-dev): Bump wiremock-jre8-standalone from 2.32.0 to 2.35.0
2 parents 3eb25e7 + 9591e4d commit de97437
Copy full SHA for de97437

File tree

Expand file treeCollapse file tree

3 files changed

+50
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+50
-1
lines changed

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
<dependency>
580580
<groupId>com.github.tomakehurst</groupId>
581581
<artifactId>wiremock-jre8-standalone</artifactId>
582-
<version>2.32.0</version>
582+
<version>2.35.0</version>
583583
<scope>test</scope>
584584
</dependency>
585585
<dependency>

‎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
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,16 @@ public void editStubMapping(StubMapping stubMapping) {
527527
wireMockServer.editStubMapping(stubMapping);
528528
}
529529

530+
/**
531+
* Removes the stub mapping.
532+
*
533+
* @param id
534+
* the id
535+
*/
536+
public void removeStubMapping(UUID id) {
537+
wireMockServer.removeStubMapping(id);
538+
}
539+
530540
/**
531541
* List all stub mappings.
532542
*
@@ -711,6 +721,28 @@ public GetScenariosResult getAllScenarios() {
711721
return wireMockServer.getAllScenarios();
712722
}
713723

724+
/**
725+
* Reset a scenario
726+
*
727+
* @param name
728+
* the name
729+
*/
730+
public void resetScenario(String name) {
731+
wireMockServer.resetScenario(name);
732+
}
733+
734+
/**
735+
* Set scenario state
736+
*
737+
* @param name
738+
* the name
739+
* @param state
740+
* the state
741+
*/
742+
public void setScenarioState(String name, String state) {
743+
wireMockServer.setScenarioState(name, state);
744+
}
745+
714746
/**
715747
* Find top near misses for.
716748
*

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

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/junit/WireMockRuleConfiguration.java
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,21 @@ public boolean getDisableStrictHttpHeaders() {
411411
return parent.getDisableStrictHttpHeaders();
412412
}
413413

414+
/**
415+
* Gets the data truncation settings.
416+
*
417+
* @return the data truncation settings
418+
*/
419+
public DataTruncationSettings getDataTruncationSettings() {
420+
return parent.getDataTruncationSettings();
421+
}
422+
423+
/**
424+
* Gets the network address rules.
425+
*
426+
* @return the network address rules
427+
*/
428+
public NetworkAddressRules getProxyTargetRules() {
429+
return parent.getProxyTargetRules();
430+
}
414431
}

0 commit comments

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