Examples of DefaultLog


Examples of org.apache.maven.monitor.logging.DefaultLog

public final class MappingMojoTest {
    @Test
    public void test_mapping() throws Exception {
        LicenseCheckMojo check = new LicenseCheckMojo();
        MockedLog logger = new MockedLog();
        check.setLog(new DefaultLog(logger));
        check.basedir = new File("src/test/resources/check");
        check.header = "header.txt";
        check.project = new MavenProjectStub();
        check.useDefaultMapping = true;
        check.strictCheck = true;
View Full Code Here

Examples of org.apache.maven.monitor.logging.DefaultLog

        check.project = new MavenProjectStub();
        check.failIfMissing = false;
        check.strictCheck = true;

        MockedLog logger = new MockedLog();
        check.setLog(new DefaultLog(logger));

        check.execute();
        assertTrue(logger.getLogEntries() > 2);

        logger.clear();
View Full Code Here

Examples of org.apache.maven.monitor.logging.DefaultLog

        check.header = "header.txt";
        check.project = new MavenProjectStub();
        check.useDefaultMapping = false;
        check.strictCheck = true;
        MockedLog logger = new MockedLog();
        check.setLog(new DefaultLog(logger));
        check.execute();
        assertFalse(logger.getContent().contains("header style: text"));
        assertTrue(logger.getContent().contains("header style: unknown"));
    }
View Full Code Here

Examples of org.apache.maven.monitor.logging.DefaultLog

        check.header = "header.txt";
        check.project = new MavenProjectStub();
        check.useDefaultMapping = true;
        check.strictCheck = true;
        MockedLog logger = new MockedLog();
        check.setLog(new DefaultLog(logger));
        try {
            check.execute();
            fail();
        } catch (MojoExecutionException e) {
            assertTrue(logger.getContent().contains("header style: text"));
View Full Code Here

Examples of org.apache.maven.monitor.logging.DefaultLog

public final class MappingMojoTest {
    @Test
    public void test_mapping() throws Exception {
        LicenseCheckMojo check = new LicenseCheckMojo();
        MockedLog logger = new MockedLog();
        check.setLog(new DefaultLog(logger));
        check.basedir = new File("src/test/resources/check");
        check.header = "header.txt";
        check.project = new MavenProjectStub();
        check.useDefaultMapping = true;
        check.strictCheck = true;
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public static ScmResult execute( File workingDir, String[] cmdAndArgs )
        throws ScmException
    {
        ScmLogger logger = new DefaultLog();
        return execute( new HgConsumer( logger ), logger, workingDir, cmdAndArgs );
    }
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public static ScmResult execute( File workingDir, String[] cmdAndArgs )
        throws ScmException
    {
        ScmLogger logger = new DefaultLog();
        return execute( new HgConsumer( logger ), logger, workingDir, cmdAndArgs );
    }
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    }

    public static ScmResult execute( File workingDir, String[] cmdAndArgs )
        throws ScmException
    {
        ScmLogger logger = new DefaultLog();
        return execute( new BazaarConsumer( logger ), logger, workingDir, cmdAndArgs );
    }
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

        throws Exception
    {
        super.setUp();

        logger = getContainer().getLogger();
        consumer = new SvnChangeLogConsumer( new DefaultLog(), null );
    }
View Full Code Here

Examples of org.apache.maven.scm.log.DefaultLog

    extends PlexusTestCase
{

    public void testConsumerUntrackedFile()
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        consumer.consumeLine( "?? project.xml" );

        List<ScmFile> changedFiles = consumer.getChangedFiles();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.