diff options
author | Curtis D'Entremont | 2006-07-31 00:37:16 +0000 |
---|---|---|
committer | Curtis D'Entremont | 2006-07-31 00:37:16 +0000 |
commit | 2006758973d7ced048bf1420533e19e1f9c8ebf3 (patch) | |
tree | fd322b1822e93509ef49b5cfd02c99a3e609d472 /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc | |
parent | d3bec536b341999b53dafeb09ba4753afec450d4 (diff) | |
download | eclipse.platform.ua-2006758973d7ced048bf1420533e19e1f9c8ebf3.tar.gz eclipse.platform.ua-2006758973d7ced048bf1420533e19e1f9c8ebf3.tar.xz eclipse.platform.ua-2006758973d7ced048bf1420533e19e1f9c8ebf3.zip |
temporarily removing test; problems in buildv20060731
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.java | 1 | ||||
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/RemoteTocParserTest.java | 52 |
2 files changed, 0 insertions, 53 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 b6b48099c..a42ee2e54 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 @@ -31,6 +31,5 @@ public class AllTocTests extends TestSuite { public AllTocTests() { addTest(TocFileParserTest.suite()); addTest(TocAssemblerTest.suite()); - addTest(RemoteTocParserTest.suite()); } } diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/RemoteTocParserTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/RemoteTocParserTest.java deleted file mode 100644 index f3eb28d86..000000000 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/RemoteTocParserTest.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 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.io.ByteArrayInputStream; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.help.ITocContribution; -import org.eclipse.help.internal.base.remote.RemoteTocParser; -import org.eclipse.help.internal.toc.TocFileProvider; -import org.eclipse.help.internal.webapp.servlet.TocSerializer; - -public class RemoteTocParserTest extends TestCase { - - /* - * Returns an instance of this Test. - */ - public static Test suite() { - return new TestSuite(RemoteTocParserTest.class); - } - - public void testProvider() throws Exception { - // first serialize the tocs - String locale = Platform.getNL(); - - TocFileProvider provider = new TocFileProvider(); - ITocContribution[] contributions = provider.getTocContributions(locale); - String expected = TocSerializer.serialize(contributions, locale); - - // parse in the serialization - ByteArrayInputStream in = new ByteArrayInputStream(expected.getBytes("UTF-8")); - RemoteTocParser parser = new RemoteTocParser(); - ITocContribution[] parsedContributions = parser.parse(in); - - // serialize the parsed data again and compare with original - String actual = TocSerializer.serialize(parsedContributions, locale); - - assertEquals("Did not get the same result when parsing then re-serializing toc contributions", expected, actual); - } -} |