Skip to content

Commit

Permalink
Issue checkstyle#11446: Updated CheckerTest to use execute and remove…
Browse files Browse the repository at this point in the history
…d unused import
  • Loading branch information
MANISH-K-07 committed Feb 26, 2024
1 parent 8d5daa5 commit 94d227a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
import com.puppycrawl.tools.checkstyle.internal.testmodules.TestFileSetCheck;
import com.puppycrawl.tools.checkstyle.internal.utils.CloseAndFlushTestByteArrayOutputStream;
import com.puppycrawl.tools.checkstyle.internal.utils.TestUtil;
import com.puppycrawl.tools.checkstyle.utils.CommonUtil;
import de.thetaphi.forbiddenapis.SuppressForbidden;

/**
Expand Down Expand Up @@ -1027,9 +1026,8 @@ public void testClearLazyLoadCacheInDetailAST() throws Exception {
final DefaultConfiguration checkerConfig = createRootConfig(treeWalkerConfig);

final String filePath = getPath("InputCheckerClearDetailAstLazyLoadCache.java");
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;

verify(checkerConfig, filePath, expected);
execute(checkerConfig, filePath);
}

@Test
Expand Down

0 comments on commit 94d227a

Please sign in to comment.