Package org.apache.maven.scm.log

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


        assertEquals( 1, changedFiles.size() );
    }

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

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

        List<ScmFile> changedFiles = consumer.getChangedFiles();
View Full Code Here


        assertEquals( ScmFileStatus.MODIFIED, changedFiles.get( 0 ).getStatus() );
    }

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

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

        List<ScmFile> changedFiles = consumer.getChangedFiles();
View Full Code Here

    public void testConsumerModifiedFileWithDirectoryAndNoFile()
        throws IOException
    {
        File dir = createTempDirectory();

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

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

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

        throws IOException
    {
        File dir = createTempDirectory();
        FileUtils.fileAppend( dir.getAbsolutePath() + File.separator + "project.xml", "data" );

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

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

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

        FileUtils.deleteDirectory( dir );
    }

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

        consumer.consumeLine( "D  Capfile" );

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

        assertEquals( 1, changedFiles.size() );
    }

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

        consumer.consumeLine( " D Capfile" );

        List<ScmFile> changedFiles = consumer.getChangedFiles();
View Full Code Here

    public void testConsumerRemovedFileWithDirectoryAndNoFile()
        throws IOException
    {
        File dir = createTempDirectory();

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

        consumer.consumeLine( "D  Capfile" );

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

        throws IOException
    {
        File dir = createTempDirectory();
        FileUtils.fileAppend( dir.getAbsolutePath() + File.separator + "Capfile", "data" );

        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), dir );

        consumer.consumeLine( "D  Capfile" );

        List changedFiles = consumer.getChangedFiles();
View Full Code Here

    }

    public void testLog1Consumer()
        throws Exception
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/status/gitstatus1.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

    }

    public void testEmptyLogConsumer()
        throws Exception
    {
        GitStatusConsumer consumer = new GitStatusConsumer( new DefaultLog(), null );

        File f = getTestFile( "/src/test/resources/git/status/gitstatus-empty.gitlog" );

        BufferedReader r = new BufferedReader( new FileReader( f ) );
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.log.DefaultLog

Copyright © 2018 www.massapicom. 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.