forked from ota4j-team/opentest4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue ota4j-team#21: Add test for DebuggableException
* Refactored ExceptionTestHelper to provide better/easier to understand support for testing DebuggableExceptions. * Introduces test for DebuggableException * Renames methods of DebugInformation to be similar to Map interface.
- Loading branch information
1 parent
e9535ea
commit d39d2a8
Showing
4 changed files
with
228 additions
and
91 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
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
24 changes: 24 additions & 0 deletions
24
src/test/java/org/opentest4j/DebuggableExceptionTests.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,24 @@ | ||
|
||
package org.opentest4j; | ||
|
||
import static org.opentest4j.ExceptionTestHelper.assertBehavesLikeStandardException; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Tests {@link DebuggableException}. | ||
* | ||
* @author Mark Michaelis | ||
* @since 1.0 | ||
*/ | ||
public class DebuggableExceptionTests { | ||
@Test | ||
public void standardConstructorsHaveSameBehaviorAsJavaStandard() throws Exception { | ||
assertBehavesLikeStandardException(DebuggableException.class); | ||
} | ||
|
||
@Test | ||
public void debugInformationConstructorsBehaveAsExpected() throws Exception { | ||
ExceptionTestHelper.assertBehavesLikeDebuggableException(DebuggableException.class); | ||
} | ||
} |
Oops, something went wrong.