-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(regression): IO Exceptions are now wrapped #1337
- Loading branch information
Ronald Holshausen
committed
Apr 11, 2021
1 parent
768e768
commit 30083b0
Showing
2 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
provider/junit/src/test/java/au/com/dius/pact/provider/junit/IgnoreIOErrorsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package au.com.dius.pact.provider.junit; | ||
|
||
import au.com.dius.pact.provider.junit.target.HttpTarget; | ||
import au.com.dius.pact.provider.junitsupport.IgnoreNoPactsToVerify; | ||
import au.com.dius.pact.provider.junitsupport.Provider; | ||
import au.com.dius.pact.provider.junitsupport.loader.PactBroker; | ||
import au.com.dius.pact.provider.junitsupport.target.Target; | ||
import au.com.dius.pact.provider.junitsupport.target.TestTarget; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(PactRunner.class) | ||
@Provider("myAwesomeService") | ||
@IgnoreNoPactsToVerify(ignoreIoErrors = "true") | ||
@PactBroker(host="pact-broker.net.doesnotexist") | ||
public class IgnoreIOErrorsTest { | ||
@TestTarget | ||
public final Target target = new HttpTarget(8332); | ||
} |