Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-09-12 16:32:42 -0400
committerMichael Valenta2003-09-12 16:32:42 -0400
commit343b794cb9aed4b811c8fb78576aad1b1919bbba (patch)
tree041305554747080c42afee38e34d4a1aadaf7474
parentfaedfc63dc777661cbd1f057374eb894b33db812 (diff)
downloadeclipse.platform.team-343b794cb9aed4b811c8fb78576aad1b1919bbba.tar.gz
eclipse.platform.team-343b794cb9aed4b811c8fb78576aad1b1919bbba.tar.xz
eclipse.platform.team-343b794cb9aed4b811c8fb78576aad1b1919bbba.zip
Fixed bug involving trampling of file content types
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/CVSProviderTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/CVSProviderTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/CVSProviderTest.java
index 8379bdfa0..29326dad6 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/CVSProviderTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/CVSProviderTest.java
@@ -30,6 +30,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.team.core.IFileTypeInfo;
import org.eclipse.team.core.RepositoryProvider;
import org.eclipse.team.core.Team;
import org.eclipse.team.core.TeamException;
@@ -378,6 +379,16 @@ public class CVSProviderTest extends EclipseTest {
// verify that local contents are up to date
assertEquals(project, copy2);
+
+ IFileTypeInfo[] infos = Team.getDefaultTypes();
+ String[] extensions = new String[infos.length];
+ int[] types = new int[infos.length];
+ for (int i = 0; i < infos.length; i++) {
+ IFileTypeInfo info = infos[i];
+ extensions[i] = info.getExtension();
+ types[i] = info.getType();
+ }
+ Team.setAllTypes(extensions, types);
}
public static void setFileContents(IFile file, String string) throws CoreException {

Back to the top