Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
index a33fe8c69..cb1258ef5 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java
@@ -174,6 +174,27 @@ public class GitCloneWizardTest extends GitCloneWizardTestBase {
}
@Test
+ public void testFileURIWithSpace() throws Exception {
+ importWizard.openWizard();
+ RepoPropertiesPage propertiesPage = importWizard
+ .openRepoPropertiesPage();
+ propertiesPage.setURI("file:///Some/Directory With Spaces/bare.git");
+ if (Platform.getOS().equals(Platform.OS_WIN32)) {
+ propertiesPage.assertSourceParams(" "
+ + System.getProperty("user.dir")
+ + "\\.\\Some\\Directory With Spaces\\bare.git does not exist.",
+ "", "/Some/Directory With Spaces/bare.git", "file", "",
+ false, "", "", false, false);
+ } else {
+ propertiesPage.assertSourceParams(
+ " /Some/Directory With Spaces/bare.git does not exist.", "",
+ "/Some/Directory With Spaces/bare.git", "file", "", false,
+ "", "", false, false);
+ }
+ bot.button("Cancel").click();
+ }
+
+ @Test
public void canCloneARemoteRepo() throws Exception {
destRepo = new File(ResourcesPlugin.getWorkspace()
.getRoot().getLocation().toFile(), "test1");

Back to the top