Skip to content

Commit

Permalink
Use the now protected isElementOfCustomAssert, see #203
Browse files Browse the repository at this point in the history
  • Loading branch information
bodewig committed Nov 11, 2020
1 parent 70df913 commit 6e1f83d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion xmlunit-assertj3/pom.xml
Expand Up @@ -47,7 +47,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.18.0</version>
<version>3.18.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Expand Up @@ -27,13 +27,10 @@ abstract class CustomAbstractAssert<SELF extends CustomAbstractAssert<SELF, ACTU
super(actual, selfType);
}

// @Override
@Override
protected boolean isElementOfCustomAssert(final StackTraceElement stackTraceElement) {
if (stackTraceElement.getClassName().contains(ORG_XMLUNIT_ASSERTJ_ERROR)) {
return true;
}
// return super.isElementOfCustomAssert(stackTraceElement);
return false;
return stackTraceElement.getClassName().contains(ORG_XMLUNIT_ASSERTJ_ERROR)
|| super.isElementOfCustomAssert(stackTraceElement);
}

}

0 comments on commit 6e1f83d

Please sign in to comment.