diff options
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java')
-rw-r--r-- | tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java index 2104dfcc8..7fe12176f 100644 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java +++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/ResourceSyncInfoTest.java @@ -183,22 +183,22 @@ public class ResourceSyncInfoTest extends EclipseTest { } public void testRepositoryLocationFormats() throws CVSException { - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host:/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host:/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host:/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host:1234/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host:1234/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host:1234/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host/home/path"), "/home/path"); - assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@domain:password@host/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host:/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host:/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host:/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host:1234/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host:1234/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host:1234/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@host/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user:password@host/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:host/home/path"), "/home/path"); + assertPathCorrect(CVSRepositoryLocation.fromString(":pserver:user@domain:password@host/home/path"), "/home/path"); } - private void assertPathCorrect(CVSRepositoryLocation location, String string) throws CVSException { - assertEquals(location.getRootDirectory(), string); - FolderSyncInfo info = new FolderSyncInfo("childPath", location.getLocation(), null, false); - assertEquals(info.getRemoteLocation(), string + '/' + "childPath"); - - } + private void assertPathCorrect(CVSRepositoryLocation location, String string) throws CVSException { + assertEquals(location.getRootDirectory(), string); + FolderSyncInfo info = new FolderSyncInfo("childPath", location.getLocation(), null, false); + assertEquals(info.getRemoteLocation(), string + '/' + "childPath"); + + } } |