diff options
Diffstat (limited to 'org.eclipse.egit.core.test')
-rw-r--r-- | org.eclipse.egit.core.test/pom.xml | 43 | ||||
-rw-r--r-- | org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitTestCase.java | 13 |
2 files changed, 43 insertions, 13 deletions
diff --git a/org.eclipse.egit.core.test/pom.xml b/org.eclipse.egit.core.test/pom.xml new file mode 100644 index 0000000000..6371a75acc --- /dev/null +++ b/org.eclipse.egit.core.test/pom.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com> + + 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 +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.eclipse.egit</groupId> + <artifactId>egit-parent</artifactId> + <version>0.6.0-SNAPSHOT</version> + </parent> + + <artifactId>org.eclipse.egit.core.test</artifactId> + <packaging>eclipse-test-plugin</packaging> + + <name>Test Plug-in (Incubation)</name> + + <build> + <plugins> + <plugin> + <groupId>org.sonatype.tycho</groupId> + <artifactId>maven-osgi-test-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <excludes> + <!-- test mojo matches TestProject be default and treats it as PojoTest --> + <exclude>**/Test*.class</exclude> + </excludes> + <useUIHarness>true</useUIHarness> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitTestCase.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitTestCase.java index 81845f9c16..49b6e36ae4 100644 --- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitTestCase.java +++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitTestCase.java @@ -10,11 +10,6 @@ package org.eclipse.egit.core.test; import java.io.File; import java.io.IOException; -import java.util.Collection; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.egit.core.project.RepositoryFinder; -import org.eclipse.egit.core.project.RepositoryMapping; import junit.framework.TestCase; @@ -27,7 +22,6 @@ public abstract class GitTestCase extends TestCase { protected void setUp() throws Exception { super.setUp(); project = new TestProject(true); - checkNotNested(); gitDir = new File(project.getProject().getWorkspace().getRoot() .getRawLocation().toFile(), ".git"); rmrf(gitDir); @@ -57,11 +51,4 @@ public abstract class GitTestCase extends TestCase { assert !d.exists(); } - protected void checkNotNested() throws CoreException { - final Collection<RepositoryMapping> parentRepositories = new RepositoryFinder( - project.getProject()).find(null); - final int numOfRepositories = parentRepositories.size(); - assertTrue("parent repository found", numOfRepositories == 0); - } - } |