Skip to content

Commit

Permalink
Pull #11761: resolve dependency order for XpathFileGeneratorAstFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and nrmancuso committed Jun 26, 2022
1 parent b3a1623 commit df3b5ea
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -45,6 +45,7 @@ public void testAcceptNoToken() {
null, XpathFileGeneratorAstFilterTest.class, null);
final TreeWalkerAuditEvent event = new TreeWalkerAuditEvent(null, null, violation, null);
final XpathFileGeneratorAstFilter filter = new XpathFileGeneratorAstFilter();
filter.finishLocalSetup();

assertWithMessage("filter accepted")
.that(filter.accept(event))
Expand All @@ -65,6 +66,7 @@ public void test() throws Exception {
final TreeWalkerAuditEvent event = createTreeWalkerAuditEvent(
"InputXpathFileGeneratorAstFilter.java", violation);
final XpathFileGeneratorAstFilter filter = new XpathFileGeneratorAstFilter();
filter.finishLocalSetup();

assertWithMessage("filter accepted")
.that(filter.accept(event))
Expand All @@ -87,6 +89,7 @@ public void testNoXpathQuery() throws Exception {
final TreeWalkerAuditEvent event = createTreeWalkerAuditEvent(
"InputXpathFileGeneratorAstFilter.java", violation);
final XpathFileGeneratorAstFilter filter = new XpathFileGeneratorAstFilter();
filter.finishLocalSetup();

assertWithMessage("filter accepted")
.that(filter.accept(event))
Expand All @@ -108,6 +111,7 @@ public void testTabWidth() throws Exception {
final TreeWalkerAuditEvent event = createTreeWalkerAuditEvent(
"InputXpathFileGeneratorAstFilter.java", violation);
final XpathFileGeneratorAstFilter filter = new XpathFileGeneratorAstFilter();
filter.finishLocalSetup();
filter.setTabWidth(6);

assertWithMessage("filter accepted")
Expand Down Expand Up @@ -141,6 +145,7 @@ public void testClearState() throws Exception {
"InputXpathFileGeneratorAstFilter.java", violation);

final XpathFileGeneratorAstFilter filter = new XpathFileGeneratorAstFilter();
filter.finishLocalSetup();

assertWithMessage("State is not cleared on finishLocalSetup")
.that(TestUtil.isStatefulFieldClearedDuringLocalSetup(filter, event,
Expand Down

0 comments on commit df3b5ea

Please sign in to comment.