use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceScmProviderTest method testParseConnectionWithUsername.
public void testParseConnectionWithUsername() throws Exception {
ScmRepository repo = makeScmRepository("scm:perforce:username@//depot/projects/pathname");
PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();
assertNull(p4Repo.getHost());
assertEquals(0, p4Repo.getPort());
assertEquals("username", p4Repo.getUser());
assertNull(p4Repo.getPassword());
assertEquals("//depot/projects/pathname", p4Repo.getPath());
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceScmProviderTest method testParseConnectionWithHostAndPort.
public void testParseConnectionWithHostAndPort() throws Exception {
ScmRepository repo = makeScmRepository("scm:perforce:host:1234://depot/projects/pathname");
PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();
assertEquals("host", p4Repo.getHost());
assertEquals(1234, p4Repo.getPort());
assertNull(p4Repo.getUser());
assertNull(p4Repo.getPassword());
assertEquals("//depot/projects/pathname", p4Repo.getPath());
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceScmProviderTest method testParseConnection.
public void testParseConnection() throws Exception {
ScmRepository repo = makeScmRepository("scm:perforce://depot/projects/pathname");
PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();
assertNull(p4Repo.getHost());
assertEquals(0, p4Repo.getPort());
assertNull(p4Repo.getUser());
assertNull(p4Repo.getPassword());
assertEquals("//depot/projects/pathname", p4Repo.getPath());
assertTrue(StringUtils.isBlank(p4Repo.getProtocol()));
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceScmProviderTest method testParseConnectionWithHostPortAndUsername2.
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());
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceScmProviderTest method testParseConnectionWithSsl.
public void testParseConnectionWithSsl() throws Exception {
ScmRepository repo = makeScmRepository("scm:perforce:ssl:host:1066://depot/projects/pathname");
PerforceScmProviderRepository p4Repo = (PerforceScmProviderRepository) repo.getProviderRepository();
assertEquals("host", p4Repo.getHost());
assertEquals(1066, p4Repo.getPort());
assertNull(p4Repo.getUser());
assertNull(p4Repo.getPassword());
assertEquals("//depot/projects/pathname", p4Repo.getPath());
assertEquals("ssl", p4Repo.getProtocol());
}
Aggregations