Package org.apache.maven.scm.provider.synergy.util

Examples of org.apache.maven.scm.provider.synergy.util.SynergyTask


        Collection<SynergyTask> entries = consumer.getTasks();

        assertEquals( "Wrong number of tasks returned", 1, entries.size() );

        SynergyTask task = (SynergyTask) entries.iterator().next();
        assertEquals( 35, task.getNumber() );
        assertEquals( "AHD456", task.getUsername() );
        assertEquals( "gefdeag", task.getComment() );
        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 4, 15, 42, 47 );

        assertEquals( cal.getTime(), task.getModifiedTime() );

    }
View Full Code Here


        Collection<SynergyTask> entries = consumer.getTasks();

        assertEquals( "Wrong number of tasks returned", 2, entries.size() );

        Iterator<SynergyTask> i = entries.iterator();
        SynergyTask task = (SynergyTask) i.next();
        assertEquals( 52, task.getNumber() );
        assertEquals( "ccm_root", task.getUsername() );
        assertEquals( "Modification du pom (url scm)", task.getComment() );
        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 6, 10, 3, 59 );
        assertEquals( cal.getTime(), task.getModifiedTime() );

        task = (SynergyTask) i.next();
        assertEquals( 53, task.getNumber() );
        assertEquals( "ccm_root", task.getUsername() );
        assertEquals( "Inverser l'odre purpose/release", task.getComment() );
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 6, 10, 47, 13 );
        assertEquals( cal.getTime(), task.getModifiedTime() );
    }
View Full Code Here

            getLogger().debug( "Consume: " + line );
        }
        StringTokenizer tokenizer = new StringTokenizer( line.trim(), SynergyUtil.SEPARATOR );
        if ( tokenizer.countTokens() == 4 )
        {
            SynergyTask task = new SynergyTask();
            task.setNumber( Integer.parseInt( tokenizer.nextToken() ) );
            task.setUsername( tokenizer.nextToken() );
            try
            {
                task.setModifiedTime( new SimpleDateFormat( ccmDateFormat, new Locale( language, country ) )
                    .parse( tokenizer.nextToken() ) );
            }
            catch ( ParseException e )
            {
                if ( getLogger().isErrorEnabled() )
                {
                    getLogger().error( "Wrong date format", e );
                }
            }
            task.setComment( tokenizer.nextToken() );

            // Add the task to the list
            entries.add( task );
        }
        else
View Full Code Here

        Collection<SynergyTask> entries = consumer.getTasks();

        assertEquals( "Wrong number of tasks returned", 1, entries.size() );

        SynergyTask task = (SynergyTask) entries.iterator().next();
        assertEquals( 35, task.getNumber() );
        assertEquals( "AHD456", task.getUsername() );
        assertEquals( "gefdeag", task.getComment() );
        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 4, 15, 42, 47 );

        assertEquals( cal.getTime(), task.getModifiedTime() );

    }
View Full Code Here

        Collection<SynergyTask> entries = consumer.getTasks();

        assertEquals( "Wrong number of tasks returned", 2, entries.size() );

        Iterator<SynergyTask> i = entries.iterator();
        SynergyTask task = (SynergyTask) i.next();
        assertEquals( 52, task.getNumber() );
        assertEquals( "ccm_root", task.getUsername() );
        assertEquals( "Modification du pom (url scm)", task.getComment() );
        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 6, 10, 3, 59 );
        assertEquals( cal.getTime(), task.getModifiedTime() );

        task = (SynergyTask) i.next();
        assertEquals( 53, task.getNumber() );
        assertEquals( "ccm_root", task.getUsername() );
        assertEquals( "Inverser l'odre purpose/release", task.getComment() );
        cal.clear();
        cal.set( 2006, Calendar.OCTOBER, 6, 10, 47, 13 );
        assertEquals( cal.getTime(), task.getModifiedTime() );
    }
View Full Code Here

            getLogger().debug( "Consume: " + line );
        }
        StringTokenizer tokenizer = new StringTokenizer( line.trim(), SynergyUtil.SEPARATOR );
        if ( tokenizer.countTokens() == 4 )
        {
            SynergyTask task = new SynergyTask();
            task.setNumber( Integer.parseInt( tokenizer.nextToken() ) );
            task.setUsername( tokenizer.nextToken() );
            try
            {
                task.setModifiedTime( new SimpleDateFormat( ccmDateFormat, new Locale( language, country ) )
                    .parse( tokenizer.nextToken() ) );
            }
            catch ( ParseException e )
            {
                if ( getLogger().isErrorEnabled() )
                {
                    getLogger().error( "Wrong date format", e );
                }
            }
            task.setComment( tokenizer.nextToken() );

            // Add the task to the list
            entries.add( task );
        }
        else
View Full Code Here

            getLogger().debug( "Consume: " + line );
        }
        StringTokenizer tokenizer = new StringTokenizer( line.trim(), SynergyUtil.SEPARATOR );
        if ( tokenizer.countTokens() == 4 )
        {
            SynergyTask task = new SynergyTask();
            task.setNumber( Integer.parseInt( tokenizer.nextToken() ) );
            task.setUsername( tokenizer.nextToken() );
            try
            {
                task.setModifiedTime( new SimpleDateFormat( ccmDateFormat, new Locale( language, country ) )
                    .parse( tokenizer.nextToken() ) );
            }
            catch ( ParseException e )
            {
                if ( getLogger().isErrorEnabled() )
                {
                    getLogger().error( "Wrong date format", e );
                }
            }
            task.setComment( tokenizer.nextToken() );

            // Add the task to the list
            entries.add( task );
        }
        else
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.provider.synergy.util.SynergyTask

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.