Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2009-07-29 23:25:41 +0000
committerChris Goldthorpe2009-07-29 23:25:41 +0000
commit2e9aa6f94dc8ed800da412a80156cfe7475145ad (patch)
tree314facc94711f0038690c8739c9fabff3f862371 /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc
parentf390704cc342c6f8a6f2e7eaf2bee8f4e6c10024 (diff)
downloadeclipse.platform.ua-2e9aa6f94dc8ed800da412a80156cfe7475145ad.tar.gz
eclipse.platform.ua-2e9aa6f94dc8ed800da412a80156cfe7475145ad.tar.xz
eclipse.platform.ua-2e9aa6f94dc8ed800da412a80156cfe7475145ad.zip
Test moved to org.eclipse.ua.tests.docv20090729
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/AllTocTests.java1
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/PrebuiltIndexChecker.java70
2 files changed, 0 insertions, 71 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/AllTocTests.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/AllTocTests.java
index 43f447f49..5e6473106 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/AllTocTests.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/AllTocTests.java
@@ -39,6 +39,5 @@ public class AllTocTests extends TestSuite {
addTestSuite(TocIconPathTest.class);
addTestSuite(TocProviderTest.class);
addTestSuite(HelpData.class);
- addTestSuite(PrebuiltIndexChecker.class);
}
}
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/PrebuiltIndexChecker.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/PrebuiltIndexChecker.java
deleted file mode 100644
index d92a21d79..000000000
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/PrebuiltIndexChecker.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ua.tests.help.toc;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.osgi.framework.Bundle;
-
-public class PrebuiltIndexChecker extends TestCase {
-
- private static final String PLATFORM_USER = "org.eclipse.platform.doc.user";
- private static final String PLATFORM_ISV = "org.eclipse.platform.doc.isv";
- private static final String PDE_USER = "org.eclipse.pde.doc.user";
- private static final String JDT_USER = "org.eclipse.jdt.doc.user";
- private static final String JDT_ISV = "org.eclipse.jdt.doc.isv";
-
- public static Test suite() {
- return new TestSuite(PrebuiltIndexChecker.class);
- }
-
- public void testPlatformUser() throws Exception {
- validateIndex(PLATFORM_USER, "index");
- }
-
- public void testPlatformIsv() throws Exception {
- validateIndex(PLATFORM_ISV, "index");
- }
-
- public void testPdeUser() throws Exception {
- validateIndex(PDE_USER, "index");
- }
-
- public void testJdtUser() throws Exception {
- validateIndex(JDT_USER, "index");
- }
-
- public void testJdtIsv() throws Exception {
- validateIndex(JDT_ISV, "index");
- }
-
- private void validateIndex(String plugin, String filepath) {
- Bundle bundle = Platform.getBundle(plugin);
- assertNotNull(bundle);
-
- String[] suffixes = { "", "/indexed_contributions", "/indexed_docs", "/indexed_dependencies" };
- for (int i = 0; i < suffixes.length; i++) {
- String fullPath = filepath + suffixes[i];
- IPath path = new Path(fullPath);
- URL url = FileLocator.find(bundle, path, null);
- assertNotNull("could not open: " + fullPath, url);
- }
- }
-
-}

Back to the top