Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpotterc0k2013-09-24 21:07:24 +0000
committerRoberto E. Escobar2013-10-12 01:16:35 +0000
commitec1f61560cd11ac4579100d660dfd630f95d5ba8 (patch)
treebef64030ed8e6a6d5113107a81cbb866302af4ac /plugins/org.eclipse.osee.framework.skynet.core.test
parent62c71004df7f764cc330ab545b7bd2b9a74f2a24 (diff)
downloadorg.eclipse.osee-ec1f61560cd11ac4579100d660dfd630f95d5ba8.tar.gz
org.eclipse.osee-ec1f61560cd11ac4579100d660dfd630f95d5ba8.tar.xz
org.eclipse.osee-ec1f61560cd11ac4579100d660dfd630f95d5ba8.zip
refinement [ats_1NLYK]: Add renderer for HTML artifacts
Change-Id: Ib639a7914fb7e84bf3008cbe18726e39c419bcb3 Signed-off-by: mpotterc0k <marc.a.potter@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/utility/NormalizeHtmlTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/utility/NormalizeHtmlTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/utility/NormalizeHtmlTest.java
index 1e100be7cd2..8de0c2669de 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/utility/NormalizeHtmlTest.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/utility/NormalizeHtmlTest.java
@@ -30,15 +30,22 @@ public class NormalizeHtmlTest {
@Test
public void test() throws Exception {
- String input = getResource(TEST_DOC);
+ String rawInput = getResource(TEST_DOC);
String expected = getResource(CONVERTED_HTML);
- input = NormalizeHtml.convertToNormalizedHTML(input);
+ String input = NormalizeHtml.convertToNormalizedHTML(rawInput);
input = bodyOnly(input);
expected = bodyOnly(expected);
input = input.replaceAll("\r", "");
expected = expected.replaceAll("\r", "");
Assert.assertEquals("Converted HTML does not equal expected", expected, input);
+
+ input = rawInput.replaceAll("BODY", "body");
+ input = bodyOnly(input);
+ input = NormalizeHtml.wrapAndNormalizeHTML(input, false, false, false);
+ input = bodyOnly(input);
+ input = input.replaceAll("\r", "");
+ Assert.assertEquals("Converted body only HTML does not equal expected", expected, input);
}
private String getResource(String resource) throws IOException {

Back to the top