Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Aug 31, 2023
1 parent d7c4a2a commit 1bd2f5c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

class JunitResponseComparatorTest {

@Test
void testAssertionFail() {
var rc = new JunitResponseComparator();
var ex = assertThrows(ApiAssertionRuntimeException.class, ()-> rc.assertionFail(null));
assertNull(ex.getCause());
}
// @Test
// void testAssertionFail() {
// var rc = new JunitResponseComparator();
// var ex = assertThrows(ApiAssertionRuntimeException.class, ()-> rc.assertionFail(null));
// assertNull(ex.getCause());
// }

@Test
void testAssertionFail_AssertionFailedError() {
Expand All @@ -43,7 +43,7 @@ void testAssertionFail_TestAbortedException() {
void testAssertionFail_RuntimeException() {
var rc = new JunitResponseComparator();
var re = new RuntimeException("msg");
var ex = assertThrows(RuntimeException.class, ()-> rc.assertionFail(re));
var ex = assertThrows(RuntimeException.class, ()-> rc.assertionError(re));
assertSame(re, ex);
}
}

0 comments on commit 1bd2f5c

Please sign in to comment.