@@ -0,0 +1,1516 @@
+package com.cflint;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.io.IOException;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport cfml.parsing.reporting.ParseException;%0A%0Aimport com.cflint.config.CFLintPluginInfo.PluginInfoRule;%0Aimport com.cflint.config.CFLintPluginInfo.PluginInfoRule.PluginMessage;%0Aimport com.cflint.config.ConfigRuntime;%0Aimport com.cflint.plugins.core.CFXTagChecker;%0A%0Apublic class TestCFExecuteChecker %7B%0A%0A%09private CFLint cfBugs;%0A%0A%09@Before%0A%09public void setUp() %7B%0A%09%09final ConfigRuntime conf = new ConfigRuntime();%0A%09%09final PluginInfoRule pluginRule = new PluginInfoRule();%0A%09%09pluginRule.setName(%22CFXTagChecker%22);%0A%09%09pluginRule.addParameter(%22tagName%22, %22cfexecute%22);%0A%09%09conf.getRules().add(pluginRule);%0A%09%09final PluginMessage pluginMessage = new PluginMessage(%22AVOID_USING_CFEXECUTE_TAG%22);%0A%09%09pluginMessage.setSeverity(%22INFO%22);%0A%09%09pluginMessage.setMessageText(%22Avoid Leaving %3C$%7BtagName%7D%3E tags in committed code.%22);%0A%09%09pluginRule.getMessages().add(pluginMessage);%0A%09%09final CFXTagChecker checker = new CFXTagChecker();%0A%09%09checker.setParameter(%22tagName%22, %22cfexecute%22);%0A%09%09cfBugs = new CFLint(conf, checker);%0A%09%7D%0A%0A%09@Test%0A%09public void test_BAD() throws ParseException, IOException %7B%0A%0A%09%09final String cfcSrc = %22%3Ccfexecute name=%5C%22date%5C%22 timeout=%5C%221%5C%22 variable=%5C%22date%5C%22 /%3E%22;%0A%09%09cfBugs.process(cfcSrc, %22test%22);%0A%09%09assertEquals(1, cfBugs.getBugs().getBugList().size());%0A%09%09assertEquals(%22Avoid Leaving %3Ccfexecute%3E tags in committed code.%22,%0A%09%09%09%09cfBugs.getBugs().getFlatBugList().get(0).getMessage());%0A%09%7D%0A%0A%7D%0A

Test for cfexecute