This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/freemarker-docgen.git
The following commit(s) were added to refs/heads/master by this push:
new 86f17b6 Removed stale test (and some cleanup of others)
86f17b6 is described below
commit 86f17b601b4dc6b8ca3b3ebb0478b5330fa4b3ce
Author: ddekany <[email protected]>
AuthorDate: Mon Feb 15 10:16:35 2021 +0100
Removed stale test (and some cleanup of others)
---
.../docgen/core/BashCommandLineArgsParserTest.java | 2 +-
.../docgen/core/ChopLinebreakWriterTest.java | 2 +-
.../docgen/core/EscapeHtmlAndXmlWriterTest.java | 75 ----------------------
3 files changed, 2 insertions(+), 77 deletions(-)
diff --git
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/BashCommandLineArgsParserTest.java
b/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/BashCommandLineArgsParserTest.java
index 6692bfe..a3f54a2 100644
---
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/BashCommandLineArgsParserTest.java
+++
b/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/BashCommandLineArgsParserTest.java
@@ -25,7 +25,7 @@ import java.util.Arrays;
import org.junit.jupiter.api.Test;
-class BashCommandLineArgsParserTest {
+public class BashCommandLineArgsParserTest {
@Test
void test1() {
diff --git
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/ChopLinebreakWriterTest.java
b/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/ChopLinebreakWriterTest.java
index 9f3216d..6a17d62 100644
---
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/ChopLinebreakWriterTest.java
+++
b/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/ChopLinebreakWriterTest.java
@@ -27,7 +27,7 @@ import java.io.Writer;
import org.junit.jupiter.api.Test;
-class ChopLinebreakWriterTest {
+public class ChopLinebreakWriterTest {
@Test
public void testCharArg1() throws IOException {
diff --git
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/EscapeHtmlAndXmlWriterTest.java
b/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/EscapeHtmlAndXmlWriterTest.java
deleted file mode 100644
index 555888f..0000000
---
a/freemarker-docgen-core/src/test/java/org/freemarker/docgen/core/EscapeHtmlAndXmlWriterTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.freemarker.docgen.core;
-
-import static org.junit.jupiter.api.Assertions.*;
-
-import java.io.IOException;
-import java.io.StringWriter;
-import java.io.Writer;
-
-import org.junit.jupiter.api.Test;
-
-class EscapeHtmlAndXmlWriterTest {
-
- @Test
- public void testCharArg1() throws IOException {
- StringWriter sw = new StringWriter();
- Writer w = new EscapeHtmlAndXmlWriter(sw);
-
- w.write('a');
- w.write('<');
- w.write('>');
- w.write('b');
- w.write('&');
- assertEquals("a<>b&", sw.toString());
- }
-
- @Test
- public void testStringArg1() throws IOException {
- StringWriter sw = new StringWriter();
- Writer w = new EscapeHtmlAndXmlWriter(sw);
-
- w.write("");
- w.write("a");
- w.write("b<cd>ef&g");
- assertEquals("ab<cd>ef&g", sw.toString());
- w.write("<>");
- assertEquals("ab<cd>ef&g<>", sw.toString());
- w.write("<");
- assertEquals("ab<cd>ef&g<><", sw.toString());
- }
-
- @Test
- public void testArrayArg1() throws IOException {
- StringWriter sw = new StringWriter();
- Writer w = new EscapeHtmlAndXmlWriter(sw);
-
- w.write("".toCharArray());
- w.write("a".toCharArray());
- w.write("b<cd>ef&g".toCharArray());
- assertEquals("ab<cd>ef&g", sw.toString());
- w.write("<>".toCharArray());
- assertEquals("ab<cd>ef&g<>", sw.toString());
- w.write("<".toCharArray());
- assertEquals("ab<cd>ef&g<><", sw.toString());
- }
-
-}
\ No newline at end of file