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 d539d42 commit 6499044
Showing 1 changed file with 1 addition and 3 deletions.
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 @@ -1026,9 +1025,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 6499044

Please sign in to comment.