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() );
}