@@ -0,0 +1,2474 @@
+package org.testah.framework.cli;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0A%0Aimport java.io.File;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class CliTest %7B%0A%0A    @Before%0A    public void setup() %7B%0A        System.getProperties().remove(%22param_lookAtInternalTests%22);%0A    %7D%0A%0A    @Test%0A    public void testCliRun() %7B%0A        System.setProperty(%22param_lookAtInternalTests%22, %22org.testah%22);%0A        final String%5B%5D args = %7B %22run%22 %7D;%0A        final Cli cli = new Cli();%0A        cli.setUnderTest(true);%0A        cli.getArgumentParser(args);%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClasses().size(), equalTo(40));%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClassesMetFilters().size(), equalTo(36));%0A    %7D%0A%0A    @Test%0A    public void testCliRunWithExternal() %7B%0A        System.setProperty(%22param_lookAtInternalTests%22, %22org.testah%22);%0A        System.setProperty(%22param_lookAtExternalTests%22, %22test.groovy%22);%0A        final String%5B%5D args = %7B %22run%22 %7D;%0A        final Cli cli = new Cli();%0A        cli.setUnderTest(true);%0A        cli.getArgumentParser(args);%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClasses().size(), equalTo(40));%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClassesMetFilters().size(), equalTo(36));%0A    %7D%0A%0A    @Test%0A    public void testCliQuery() %7B%0A        System.setProperty(%22param_lookAtInternalTests%22, %22org.testah%22);%0A        final String%5B%5D args = %7B %22query%22 %7D;%0A        final Cli cli = new Cli();%0A        cli.getArgumentParser(args);%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClasses().size(), equalTo(40));%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClassesMetFilters().size(), equalTo(36));%0A    %7D%0A%0A    @Test%0A    public void testCliQueryWithExternal() %7B%0A        System.setProperty(%22param_lookAtInternalTests%22, %22org.testah%22);%0A        System.setProperty(%22param_lookAtExternalTests%22, %22test.groovy%22);%0A        final String%5B%5D args = %7B %22query%22 %7D;%0A        final Cli cli = new Cli();%0A        cli.getArgumentParser(args);%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClassesMetFilters().size(), equalTo(36));%0A        Assert.assertThat(cli.getTestPlanFilter().getTestClasses().size(), equalTo(40));%0A    %7D%0A%0A    @Test%0A    public void testCliCreate() %7B%0A        final String%5B%5D args = %7B %22create%22 %7D;%0A        final Cli cli = new Cli();%0A        cli.getArgumentParser(args);%0A        Assert.assertTrue(new File(%22testah.properties%22).exists());%0A    %7D%0A%0A%7D%0A

add simple test