Package org.apache.maven.scm.provider.perforce.repository

Examples of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository


    public void testParseConnectionWithHostPortAndUsername2()
        throws Exception
    {
        ScmRepository repo = makeScmRepository( "scm:perforce:username@host:1234://depot/projects/pathname" );

        PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();

        assertEquals( "host", p4Repo.getHost() );

        assertEquals( 1234, p4Repo.getPort() );

        assertEquals( "username", p4Repo.getUser() );

        assertNull( p4Repo.getPassword() );

        assertEquals( "//depot/projects/pathname", p4Repo.getPath() );
    }
View Full Code Here


    public void testParseConnectionWithHostAndUsername()
        throws Exception
    {
        ScmRepository repo = makeScmRepository( "scm:perforce:username@host://depot/projects/pathname" );

        PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();

        assertEquals( "host", p4Repo.getHost() );

        assertEquals( 0, p4Repo.getPort() );

        assertEquals( "username", p4Repo.getUser() );

        assertNull( p4Repo.getPassword() );

        assertEquals( "//depot/projects/pathname", p4Repo.getPath() );
    }
View Full Code Here

    public void testParseConnectionWithHost()
        throws Exception
    {
        ScmRepository repo = makeScmRepository( "scm:perforce:host://depot/projects/pathname" );

        PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();

        assertEquals( "host", p4Repo.getHost() );

        assertEquals( 0, p4Repo.getPort() );

        assertNull( p4Repo.getUser() );

        assertNull( p4Repo.getPassword() );

        assertEquals( "//depot/projects/pathname", p4Repo.getPath() );
    }
View Full Code Here

    private void testCommandLine( String scmUrl, String commandLine )
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository =
            (PerforceScmProviderRepository) repository.getProviderRepository();
        ScmFileSet files =
            new ScmFileSet( new File( "." ),
                            Arrays.asList( new File[] { new File( "foo.xml" ), new File( "bar.xml" ) } ) );
        Commandline cl = PerforceUnEditCommand.createCommandLine( svnRepository, workingDirectory, files );
View Full Code Here

        throws Exception
    {
        workingDirectory.mkdirs();

        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository
            .getProviderRepository();
        Commandline cl = PerforceCheckOutCommand.createCommandLine( svnRepository, workingDirectory,
                                                                    new ScmRevision( "somelabel" ), "test-test-maven" );

        assertCommandLine( commandLine, null, cl );
View Full Code Here

    private void testCommandLine( String scmUrl, String commandLine )
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository =
            (PerforceScmProviderRepository) repository.getProviderRepository();
        ScmFileSet files =
            new ScmFileSet( new File( "." ),
                            Arrays.asList( new File[] { new File( "foo.xml" ), new File( "bar.xml" ) } ) );
        Commandline cl = PerforceRemoveCommand.createCommandLine( svnRepository, workingDirectory, files );
View Full Code Here

    private void testCommandLine( ScmVersion startRev, ScmVersion endRev, String commandLine )
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( "scm:perforce://depot/projects/pathname" );
        PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository
            .getProviderRepository();
        Commandline cl = PerforceDiffCommand.createCommandLine( svnRepository, workingDirectory, startRev, endRev );

        assertCommandLine( commandLine, null, cl );
    }
View Full Code Here

    private void testCommandLine( String scmUrl, String commandLine )
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository =
            (PerforceScmProviderRepository) repository.getProviderRepository();
        ScmFileSet files =
            new ScmFileSet( new File( "." ),
                            Arrays.asList( new File[] { new File( "foo.xml" ), new File( "bar.xml" ) } ) );
        Commandline cl = PerforceCheckInCommand.createCommandLine( svnRepository, workingDirectory );
View Full Code Here

     */
    public void disabledTestLoginWithoutPassword()
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( "scm:perforce://depot/projects/pathname" );
        PerforceScmProviderRepository scmRepository =
            (PerforceScmProviderRepository) repository.getProviderRepository();
        ScmFileSet fileSet = new ScmFileSet( new File( "." ) );

        PerforceLoginCommand command = new PerforceLoginCommand();
        ScmLogger logger = new DefaultLog();
View Full Code Here

    private void testCommandLine( String commandLine )
        throws Exception
    {
        ScmRepository repository = getScmManager().makeScmRepository( "scm:perforce://depot/projects/pathname" );
        PerforceScmProviderRepository scmRepository = (PerforceScmProviderRepository) repository
            .getProviderRepository();
        //CommandParameters params = new CommandParameters();
        Commandline cl = PerforceLoginCommand.createCommandLine( scmRepository, workingDirectory );

        assertCommandLine( commandLine, null, cl );
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository

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.