diff options
author | Thomas Wolf | 2015-10-21 18:47:02 +0000 |
---|---|---|
committer | Thomas Wolf | 2015-10-21 18:47:02 +0000 |
commit | 57955829fd69885b2e58af41de0d5dd56b7ef4d1 (patch) | |
tree | dbd0e21f57359e987c8a7cfd679423efbc1a348f | |
parent | 9e548a7edebb5e3d4d4a3374efb0029e78ffdc1a (diff) | |
download | egit-57955829fd69885b2e58af41de0d5dd56b7ef4d1.tar.gz egit-57955829fd69885b2e58af41de0d5dd56b7ef4d1.tar.xz egit-57955829fd69885b2e58af41de0d5dd56b7ef4d1.zip |
Minor improvement in test for repository deletion
Besides verifying that the shared project has gone from Eclipse when
the repository is deleted also verify that the project is gone on
disk, and (since that project was the only one there) even the whole
working directory is gone.
Instead of just checking for the working tree, do check for each one
explicitly so that in case of a failure it's clearer what exactly
failed.
Change-Id: I8676c0c173ff923ccd799ff9d490c7f8152bbd17
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r-- | org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java index 93269f6400..10aab87669 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java @@ -1,10 +1,13 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Matthias Sohn <matthias.sohn@sap.com> and others. + * Copyright (c) 2012, 2013, 2015 Matthias Sohn <matthias.sohn@sap.com> and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Thomas Wolf <thomas.wolf@paranor.ch> - Bug 479964 *******************************************************************************/ package org.eclipse.egit.ui.view.repositories; @@ -78,6 +81,8 @@ public class GitRepositoriesViewRepoDeletionTest extends assertEmpty(); assertProjectExistence(PROJ1, false); assertFalse(repositoryFile.exists()); + assertFalse(new File(repositoryFile.getParentFile(), PROJ1).exists()); + assertFalse(repositoryFile.getParentFile().exists()); } @Test |