From 08d4b249298656b0dbd2d4a860ddb3319972dac0 Mon Sep 17 00:00:00 2001
From: rbri
Date: Tue, 16 Apr 2019 20:46:21 +0200
Subject: [PATCH 001/475] fix ci server url
---
README.md | 2 +-
pom.xml | 2 +-
src/site/xdoc/gettingLatestCode.xml | 2 +-
src/site/xdoc/index.xml | 2 +-
src/site/xdoc/submittingBugs.xml | 2 +-
src/site/xdoc/submittingJSBugs.xml | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 4883eb86cdd..36f7855d193 100644
--- a/README.md
+++ b/README.md
@@ -45,5 +45,5 @@ This project is licensed under the Apache 2.0 License
[1]: https://sourceforge.net/projects/htmlunit/files/htmlunit/2.33/ "HtmlUnit on sourceforge"
-[2]: http://167.86.92.69/jenkins/view/HtmlUnit/job/HtmlUnit/ "HtmlUnit CI"
+[2]: http://167.86.92.69/job/HtmlUnit/ "HtmlUnit CI"
[3]: https://twitter.com/HtmlUnit "https://twitter.com/HtmlUnit"
diff --git a/pom.xml b/pom.xml
index 03652260315..81faaecbb7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -699,7 +699,7 @@
Jenkins
- http://167.86.92.69/jenkins/view/HtmlUnit/
+ http://167.86.92.69/job/HtmlUnit/
diff --git a/src/site/xdoc/gettingLatestCode.xml b/src/site/xdoc/gettingLatestCode.xml
index 2e9d3684c45..42ed40ea171 100644
--- a/src/site/xdoc/gettingLatestCode.xml
+++ b/src/site/xdoc/gettingLatestCode.xml
@@ -20,7 +20,7 @@
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 13d0ede17ba..cf2f5b26fc8 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -71,7 +71,7 @@
Latest build / CI server
- Jenkins build server
+ Jenkins build server
diff --git a/src/site/xdoc/submittingBugs.xml b/src/site/xdoc/submittingBugs.xml
index d70b513286a..6bb676ec5c3 100644
--- a/src/site/xdoc/submittingBugs.xml
+++ b/src/site/xdoc/submittingBugs.xml
@@ -20,7 +20,7 @@
Before reporting an error, make sure that you are up to the latest version of the software. If
- you can, get the latest snapshot ,
+ you can, get the latest snapshot ,
or build it from the sources yourself to see if the error still occurs. Check the
dependencies to be sure that you have all the required jar files.
Also, review the list of bugs and recently closed bugs to see if someone else has already reported
diff --git a/src/site/xdoc/submittingJSBugs.xml b/src/site/xdoc/submittingJSBugs.xml
index 5deb54f4489..da6e376ad8f 100644
--- a/src/site/xdoc/submittingJSBugs.xml
+++ b/src/site/xdoc/submittingJSBugs.xml
@@ -69,7 +69,7 @@ net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call met
Use the latest released version at least, if not the
-
+
latest snapshot .
From 5cee6249c69358a8e60fe395227cf81bfcd4372c Mon Sep 17 00:00:00 2001
From: rbri
Date: Fri, 19 Apr 2019 17:27:44 +0200
Subject: [PATCH 002/475] fight with our ci server
---
pom.xml | 2 +-
.../com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 81faaecbb7f..ddc26846204 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
net.sourceforge.htmlunit
htmlunit
- 2.35.0
+ 2.36.0-SNAPSHOT
HtmlUnit
Gargoyle Software Inc.
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index 09d222cf8fc..03ff6ab418c 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -46,7 +46,7 @@
*
* @author Ronald Brill
*/
-@RunWith(BrowserParameterizedRunner.class)
+// @RunWith(BrowserParameterizedRunner.class)
public class HtmlScript3Test extends WebDriverTestCase {
private static final String BOM_UTF_16LE = "BOMUTF16LE";
From b1327ca46586bd372ba037cdca37a348fc0f8685 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 09:26:21 +0200
Subject: [PATCH 003/475] latest htmlunit-driver
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ddc26846204..3bd61f2ffcb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
9.4.16.v20190411
3.141.59
- 2.34.0
+ 2.35.0
1.4.0
2.35.0
2.35.0
From 2c416d21f283d20f957a19ec32b6e08d23cfe21a Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 09:27:53 +0200
Subject: [PATCH 004/475] enable the tests again
---
.../com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index 03ff6ab418c..09d222cf8fc 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -46,7 +46,7 @@
*
* @author Ronald Brill
*/
-// @RunWith(BrowserParameterizedRunner.class)
+@RunWith(BrowserParameterizedRunner.class)
public class HtmlScript3Test extends WebDriverTestCase {
private static final String BOM_UTF_16LE = "BOMUTF16LE";
From a39bb18d44932eccbc5587627d871b68ae0dc357 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 17:04:56 +0200
Subject: [PATCH 005/475] minor code enhancement
---
.../com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java b/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
index 481ebc7c592..8ff8b7d9885 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
@@ -94,10 +94,10 @@ public static void assertEquals(
if (expected == null && actual == null) {
return;
}
- if (expected == null || actual == null) {
+ if (expected == null || expected.length < length) {
fail(message);
}
- if (expected.length < length || actual.length < length) {
+ if (actual == null || actual.length < length) {
fail(message);
}
for (int i = 0; i < length; i++) {
From 32f2740dbd6ae62e11be83414fb164fcb8f141c2 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 17:06:04 +0200
Subject: [PATCH 006/475] test for getting console output from web driver
---
.../htmlunit/WebDriverTestCase.java | 9 ++++
.../htmlunit/javascript/host/ConsoleTest.java | 45 +++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/WebDriverTestCase.java b/src/test/java/com/gargoylesoftware/htmlunit/WebDriverTestCase.java
index 67839e4ce77..da0c8f61cf4 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/WebDriverTestCase.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/WebDriverTestCase.java
@@ -39,6 +39,7 @@
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.function.Supplier;
+import java.util.logging.Level;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
@@ -90,7 +91,10 @@
import org.openqa.selenium.htmlunit.HtmlUnitWebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerDriverService;
+import org.openqa.selenium.logging.LogType;
+import org.openqa.selenium.logging.LoggingPreferences;
import org.openqa.selenium.remote.BrowserType;
+import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.UnreachableBrowserException;
@@ -454,6 +458,11 @@ protected WebDriver buildWebDriver() throws IOException {
}
final ChromeOptions options = new ChromeOptions();
options.addArguments("--lang=en-US");
+
+ final LoggingPreferences logPrefs = new LoggingPreferences();
+ logPrefs.enable(LogType.BROWSER, Level.INFO);
+ options.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);
+
return new ChromeDriver(options);
}
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ConsoleTest.java b/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ConsoleTest.java
index 1eb305b0479..60b06cb2c84 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ConsoleTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ConsoleTest.java
@@ -14,11 +14,22 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
+import java.util.List;
+
import org.junit.Test;
import org.junit.runner.RunWith;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.logging.LogEntries;
+import org.openqa.selenium.logging.LogEntry;
+import org.openqa.selenium.logging.LogType;
+import org.openqa.selenium.logging.Logs;
import com.gargoylesoftware.htmlunit.BrowserRunner;
import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
+import com.gargoylesoftware.htmlunit.BrowserRunner.BuggyWebDriver;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
/**
@@ -138,4 +149,38 @@ public void fromWindow() throws Exception {
loadPageWithAlerts2(html);
}
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @BuggyWebDriver({FF, IE})
+ public void simpleString() throws Exception {
+ final String html
+ = "\n"
+ + "\n"
+ + "\n"
+ + "";
+
+ final WebDriver driver = loadPage2(html);
+
+ final Logs logs = driver.manage().logs();
+ final LogEntries logEntries = logs.get(LogType.BROWSER);
+ final List logEntryList = logEntries.getAll();
+
+ final int count = logEntryList.size();
+ assertTrue(count > 0);
+
+ long timestamp = 0;
+ for (int i = 0; i < 4; i++) {
+ final LogEntry logEntry = logEntryList.get(i);
+ assertTrue(logEntry.getMessage(), logEntry.getMessage().contains("test log " + i));
+ assertTrue(logEntry.getTimestamp() >= timestamp);
+ timestamp = logEntry.getTimestamp();
+ }
+ }
}
From 521258ab3ff94daef588b8b040e5b4831c9d7c65 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 17:06:35 +0200
Subject: [PATCH 007/475] use fixed HtmlUnitDriver
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3bd61f2ffcb..797ec182433 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
9.4.16.v20190411
3.141.59
- 2.35.0
+ 2.35.1
1.4.0
2.35.0
2.35.0
From a2bb643d5769d50eefbb839e636f65ceacdd4af1 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sat, 20 Apr 2019 19:30:05 +0200
Subject: [PATCH 008/475] disable this test again
---
.../htmlunit/html/HtmlScript3Test.java | 2752 ++++++++---------
1 file changed, 1376 insertions(+), 1376 deletions(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index 09d222cf8fc..f36e9a5672a 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -14,31 +14,31 @@
*/
package com.gargoylesoftware.htmlunit.html;
-import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
-import static java.nio.charset.StandardCharsets.ISO_8859_1;
-import static java.nio.charset.StandardCharsets.UTF_8;
-
-import java.net.URL;
-import java.nio.charset.Charset;
-import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.apache.commons.io.ByteOrderMark;
-import org.apache.commons.lang3.ArrayUtils;
-import org.junit.Test;
+//import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+//import static java.nio.charset.StandardCharsets.ISO_8859_1;
+//import static java.nio.charset.StandardCharsets.UTF_8;
+//
+//import java.net.URL;
+//import java.nio.charset.Charset;
+//import java.nio.charset.StandardCharsets;
+//import java.util.ArrayList;
+//import java.util.Collection;
+//import java.util.List;
+//
+//import org.apache.commons.io.ByteOrderMark;
+//import org.apache.commons.lang3.ArrayUtils;
+//import org.junit.Test;
import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized.Parameter;
-import org.junit.runners.Parameterized.Parameters;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebDriverException;
-
+//import org.junit.runners.Parameterized.Parameter;
+//import org.junit.runners.Parameterized.Parameters;
+//import org.openqa.selenium.WebDriver;
+//import org.openqa.selenium.WebDriverException;
+//
import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner;
-import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner.Default;
-import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
-import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
-import com.gargoylesoftware.htmlunit.util.MimeType;
+//import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner.Default;
+//import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
+//import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
+//import com.gargoylesoftware.htmlunit.util.MimeType;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
/**
@@ -49,1357 +49,1357 @@
@RunWith(BrowserParameterizedRunner.class)
public class HtmlScript3Test extends WebDriverTestCase {
- private static final String BOM_UTF_16LE = "BOMUTF16LE";
- private static final String BOM_UTF_16BE = "BOMUTF16BE";
- private static final String BOM_UTF_8 = "BOMUTF8";
-
- private enum TestCharset {
- UTF8("UTF8", UTF_8),
- ISO88591("ISO88591", ISO_8859_1),
- GB2312("GB2312", Charset.forName("GB2312"));
-
- private final String label_;
- private final Charset charset_;
-
- TestCharset(final String label, final Charset charset) {
- label_ = label;
- charset_ = charset;
- }
-
- @Override
- public String toString() {
- return label_;
- }
-
- public Charset getCharset() {
- return charset_;
- }
- }
-
- /**
- * Returns the parameterized data.
- * @return the parameterized data
- * @throws Exception if an error occurs
- */
- @Parameters
- public static Collection data() throws Exception {
- final List list = new ArrayList<>();
-
- final TestCharset[] charsetHtmlResponseHeader =
- new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.GB2312};
- final TestCharset[] charsetAttribute = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
- final TestCharset[] charsetResponseHeader = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
- final TestCharset[] charsetResponseEncoding = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
- final String[] bom = new String[] {null, BOM_UTF_8, BOM_UTF_16LE, BOM_UTF_16BE};
-
- for (final Object charsetHtml : charsetHtmlResponseHeader) {
- for (final Object attribute : charsetAttribute) {
- for (final Object responseHeader : charsetResponseHeader) {
- for (final Object responseEncoding : charsetResponseEncoding) {
- for (final Object b : bom) {
- list.add(new Object[] {charsetHtml, attribute, responseHeader, responseEncoding, b});
- }
- }
- }
- }
- }
- return list;
- }
-
- /**
- * The charsetHtmlResponseHeader.
- */
- @Parameter
- public TestCharset charsetHtmlResponseHeader_;
-
- /**
- * The charsetAttribute.
- */
- @Parameter(1)
- public TestCharset charsetAttribute_;
-
- /**
- * The charsetResponseHeader.
- */
- @Parameter(2)
- public TestCharset charsetResponseHeader_;
-
- /**
- * The charsetResponseEncoding.
- */
- @Parameter(3)
- public TestCharset charsetResponseEncoding_;
-
- /**
- * The bom.
- */
- @Parameter(4)
- public String bom_;
-
- /**
- * The default test.
- * @throws Exception if an error occurs
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- @Default
- public void charset() throws Exception {
- charset(charsetHtmlResponseHeader_, charsetAttribute_, charsetResponseHeader_, charsetResponseEncoding_, bom_);
- }
-
- private void charset(
- final TestCharset charsetHtmlResponse,
- final TestCharset charsetAttribute,
- final TestCharset charsetResponseHeader,
- final TestCharset charsetResponseEncoding,
- final String bom) throws Exception {
-
- // use always a different url to avoid caching effects
- final URL cssUrl = new URL(URL_SECOND, "" + System.currentTimeMillis() + ".js");
-
- String html
- = "\n"
- + " "
- + " \n"
- + "\n"
- + "\n"
- + "";
-
- String scriptContentType = MimeType.APPLICATION_JAVASCRIPT;
- if (charsetResponseHeader != null) {
- scriptContentType = scriptContentType + "; charset="
- + charsetResponseHeader.getCharset().name().toLowerCase();
- }
- final String js = "alert('a'); alert('ä'); alert('أهلاً'); alert('мир'); alert('房间');";
-
- byte[] script = null;
- if (charsetResponseEncoding == null) {
- script = js.getBytes(UTF_8);
- }
- else {
- script = js.getBytes(charsetResponseEncoding.getCharset());
- }
-
- if (BOM_UTF_8.equals(bom)) {
- script = ArrayUtils.addAll(ByteOrderMark.UTF_8.getBytes(), js.getBytes(StandardCharsets.UTF_8));
- }
- else if (BOM_UTF_16BE.equals(bom)) {
- script = ArrayUtils.addAll(ByteOrderMark.UTF_16BE.getBytes(), js.getBytes(StandardCharsets.UTF_16BE));
- }
- else if (BOM_UTF_16LE.equals(bom)) {
- script = ArrayUtils.addAll(ByteOrderMark.UTF_16LE.getBytes(), js.getBytes(StandardCharsets.UTF_16LE));
- }
- getMockWebConnection().setResponse(cssUrl, script, 200, "OK", scriptContentType, null);
-
- String htmlContentType = MimeType.TEXT_HTML;
- if (charsetHtmlResponse != null) {
- htmlContentType = htmlContentType + "; charset=" + charsetHtmlResponse.getCharset().name();
- }
-
- Charset htmlResponseCharset = ISO_8859_1;
- if (charsetHtmlResponse != null) {
- htmlResponseCharset = charsetHtmlResponse.getCharset();
- }
-
- expandExpectedAlertsVariables(URL_FIRST);
- final String[] expectedAlerts = getExpectedAlerts();
- try {
- final WebDriver driver = loadPage2(html, URL_FIRST,
- htmlContentType, htmlResponseCharset, null);
-
- if (expectedAlerts.length == 1) {
- final List actualAlerts = getCollectedAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts.length);
- assertEquals(1, actualAlerts.size());
-
- final String msg = actualAlerts.get(0);
- assertEquals(expectedAlerts[0], "Invalid token");
- assertTrue(msg, msg.contains("Invalid or unexpected token")
- || msg.contains("illegal character")
- || msg.contains("Ungültiges Zeichen"));
- }
- else {
- verifyAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts);
- }
- }
- catch (final WebDriverException e) {
- if (!e.getCause().getMessage().contains("illegal character")
- && !e.getCause().getMessage().contains("is not defined.")) {
- throw e;
- }
-
- assertTrue(expectedAlerts.length == 1);
- final String msg = e.getCause().getMessage();
- assertTrue(msg, msg.contains(expectedAlerts[0]));
- }
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591____() throws Exception {
- charset(TestCharset.ISO88591, null, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591___UTF8_() throws Exception {
- charset(TestCharset.ISO88591, null, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _ISO88591___ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, null, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _ISO88591__UTF8_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591__() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591_UTF8_() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _ISO88591__ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591_ISO88591_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _ISO88591_UTF8__ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_UTF8__BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, null, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_UTF8_UTF8_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _ISO88591_UTF8_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_UTF8_ISO88591_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591__() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _ISO88591_UTF8_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591___() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591__UTF8_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _ISO88591_ISO88591__ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_UTF8__BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_UTF8_UTF8_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _ISO88591_ISO88591_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_UTF8_ISO88591_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591__() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _ISO88591_ISO88591_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _UTF8_ISO88591_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591_ISO88591__() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _UTF8_ISO88591_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _UTF8_ISO88591__ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591__UTF8_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591___() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _UTF8_UTF8_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8_ISO88591__() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _UTF8_UTF8_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _UTF8_UTF8__ISO88591_() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8___BOMUTF16BE() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, null, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _UTF8__ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8__ISO88591_UTF8_() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8__ISO88591__() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _UTF8__UTF8_ISO88591_() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _UTF8___ISO88591_() throws Exception {
- charset(TestCharset.UTF8, null, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8__ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8__ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void __ISO88591_ISO88591_ISO88591_() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591_ISO88591_UTF8_() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591_ISO88591__() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void __ISO88591_UTF8_ISO88591_() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void __ISO88591__ISO88591_() throws Exception {
- charset(null, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591__UTF8_() throws Exception {
- charset(null, TestCharset.ISO88591, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591___() throws Exception {
- charset(null, TestCharset.ISO88591, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void __UTF8_ISO88591_ISO88591_() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __UTF8_ISO88591_UTF8_() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void __UTF8_ISO88591__() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void __UTF8_UTF8_ISO88591_() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void __UTF8__ISO88591_() throws Exception {
- charset(null, TestCharset.UTF8, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void ___ISO88591_ISO88591_() throws Exception {
- charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void ___ISO88591_UTF8_() throws Exception {
- charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void ___ISO88591__() throws Exception {
- charset(null, null, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void ___UTF8_ISO88591_() throws Exception {
- charset(null, null, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void ____ISO88591_() throws Exception {
- charset(null, null, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void ____UTF8_() throws Exception {
- charset(null, null, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _____() throws Exception {
- charset(null, null, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591_ISO88591__BOMUTF8() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __UTF8_ISO88591__BOMUTF8() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void ___ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void ___ISO88591__BOMUTF8() throws Exception {
- charset(null, null, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _GB2312_ISO88591_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591_ISO88591__() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _GB2312_ISO88591_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _GB2312_ISO88591__ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591__UTF8_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591___() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _GB2312_UTF8_ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_UTF8_ISO88591_UTF8_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_UTF8_ISO88591__() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _GB2312_UTF8_UTF8_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _GB2312_UTF8__ISO88591_() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "?????", "???", "??"})
- public void _GB2312__ISO88591_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312__ISO88591_UTF8_() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312__ISO88591__() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _GB2312__UTF8_ISO88591_() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.UTF8, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "�", "?????", "???", "??"})
- public void _GB2312___ISO88591_() throws Exception {
- charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
- @NotYetImplemented
- public void _GB2312___UTF8_() throws Exception {
- charset(TestCharset.GB2312, null, null, TestCharset.UTF8, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
- @NotYetImplemented
- public void _GB2312____() throws Exception {
- charset(TestCharset.GB2312, null, null, null, null);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_UTF8_ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312__ISO88591_UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312__ISO88591__BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _GB2312__ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _ISO88591__ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void _UTF8__ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void __UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
- IE = {"a", "ä", "أهلاً", "мир", "房间"})
- public void ___ISO88591_ISO88591_BOMUTF8() throws Exception {
- charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- @NotYetImplemented(IE)
- public void _GB2312____BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, null, null, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- @NotYetImplemented(IE)
- public void _GB2312___UTF8_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, null, TestCharset.UTF8, BOM_UTF_8);
- }
-
- /**
- * @throws Exception if the test fails
- */
- @Test
- @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
- @NotYetImplemented(IE)
- public void _GB2312___ISO88591_BOMUTF8() throws Exception {
- charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, BOM_UTF_8);
- }
+// private static final String BOM_UTF_16LE = "BOMUTF16LE";
+// private static final String BOM_UTF_16BE = "BOMUTF16BE";
+// private static final String BOM_UTF_8 = "BOMUTF8";
+//
+// private enum TestCharset {
+// UTF8("UTF8", UTF_8),
+// ISO88591("ISO88591", ISO_8859_1),
+// GB2312("GB2312", Charset.forName("GB2312"));
+//
+// private final String label_;
+// private final Charset charset_;
+//
+// TestCharset(final String label, final Charset charset) {
+// label_ = label;
+// charset_ = charset;
+// }
+//
+// @Override
+// public String toString() {
+// return label_;
+// }
+//
+// public Charset getCharset() {
+// return charset_;
+// }
+// }
+//
+// /**
+// * Returns the parameterized data.
+// * @return the parameterized data
+// * @throws Exception if an error occurs
+// */
+// @Parameters
+// public static Collection data() throws Exception {
+// final List list = new ArrayList<>();
+//
+// final TestCharset[] charsetHtmlResponseHeader =
+// new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.GB2312};
+// final TestCharset[] charsetAttribute = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+// final TestCharset[] charsetResponseHeader = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+// final TestCharset[] charsetResponseEncoding = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+// final String[] bom = new String[] {null, BOM_UTF_8, BOM_UTF_16LE, BOM_UTF_16BE};
+//
+// for (final Object charsetHtml : charsetHtmlResponseHeader) {
+// for (final Object attribute : charsetAttribute) {
+// for (final Object responseHeader : charsetResponseHeader) {
+// for (final Object responseEncoding : charsetResponseEncoding) {
+// for (final Object b : bom) {
+// list.add(new Object[] {charsetHtml, attribute, responseHeader, responseEncoding, b});
+// }
+// }
+// }
+// }
+// }
+// return list;
+// }
+//
+// /**
+// * The charsetHtmlResponseHeader.
+// */
+// @Parameter
+// public TestCharset charsetHtmlResponseHeader_;
+//
+// /**
+// * The charsetAttribute.
+// */
+// @Parameter(1)
+// public TestCharset charsetAttribute_;
+//
+// /**
+// * The charsetResponseHeader.
+// */
+// @Parameter(2)
+// public TestCharset charsetResponseHeader_;
+//
+// /**
+// * The charsetResponseEncoding.
+// */
+// @Parameter(3)
+// public TestCharset charsetResponseEncoding_;
+//
+// /**
+// * The bom.
+// */
+// @Parameter(4)
+// public String bom_;
+//
+// /**
+// * The default test.
+// * @throws Exception if an error occurs
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// @Default
+// public void charset() throws Exception {
+// charset(charsetHtmlResponseHeader_, charsetAttribute_, charsetResponseHeader_, charsetResponseEncoding_, bom_);
+// }
+//
+// private void charset(
+// final TestCharset charsetHtmlResponse,
+// final TestCharset charsetAttribute,
+// final TestCharset charsetResponseHeader,
+// final TestCharset charsetResponseEncoding,
+// final String bom) throws Exception {
+//
+// // use always a different url to avoid caching effects
+// final URL cssUrl = new URL(URL_SECOND, "" + System.currentTimeMillis() + ".js");
+//
+// String html
+// = "\n"
+// + " "
+// + " \n"
+// + "\n"
+// + "\n"
+// + "";
+//
+// String scriptContentType = MimeType.APPLICATION_JAVASCRIPT;
+// if (charsetResponseHeader != null) {
+// scriptContentType = scriptContentType + "; charset="
+// + charsetResponseHeader.getCharset().name().toLowerCase();
+// }
+// final String js = "alert('a'); alert('ä'); alert('أهلاً'); alert('мир'); alert('房间');";
+//
+// byte[] script = null;
+// if (charsetResponseEncoding == null) {
+// script = js.getBytes(UTF_8);
+// }
+// else {
+// script = js.getBytes(charsetResponseEncoding.getCharset());
+// }
+//
+// if (BOM_UTF_8.equals(bom)) {
+// script = ArrayUtils.addAll(ByteOrderMark.UTF_8.getBytes(), js.getBytes(StandardCharsets.UTF_8));
+// }
+// else if (BOM_UTF_16BE.equals(bom)) {
+// script = ArrayUtils.addAll(ByteOrderMark.UTF_16BE.getBytes(), js.getBytes(StandardCharsets.UTF_16BE));
+// }
+// else if (BOM_UTF_16LE.equals(bom)) {
+// script = ArrayUtils.addAll(ByteOrderMark.UTF_16LE.getBytes(), js.getBytes(StandardCharsets.UTF_16LE));
+// }
+// getMockWebConnection().setResponse(cssUrl, script, 200, "OK", scriptContentType, null);
+//
+// String htmlContentType = MimeType.TEXT_HTML;
+// if (charsetHtmlResponse != null) {
+// htmlContentType = htmlContentType + "; charset=" + charsetHtmlResponse.getCharset().name();
+// }
+//
+// Charset htmlResponseCharset = ISO_8859_1;
+// if (charsetHtmlResponse != null) {
+// htmlResponseCharset = charsetHtmlResponse.getCharset();
+// }
+//
+// expandExpectedAlertsVariables(URL_FIRST);
+// final String[] expectedAlerts = getExpectedAlerts();
+// try {
+// final WebDriver driver = loadPage2(html, URL_FIRST,
+// htmlContentType, htmlResponseCharset, null);
+//
+// if (expectedAlerts.length == 1) {
+// final List actualAlerts = getCollectedAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts.length);
+// assertEquals(1, actualAlerts.size());
+//
+// final String msg = actualAlerts.get(0);
+// assertEquals(expectedAlerts[0], "Invalid token");
+// assertTrue(msg, msg.contains("Invalid or unexpected token")
+// || msg.contains("illegal character")
+// || msg.contains("Ungültiges Zeichen"));
+// }
+// else {
+// verifyAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts);
+// }
+// }
+// catch (final WebDriverException e) {
+// if (!e.getCause().getMessage().contains("illegal character")
+// && !e.getCause().getMessage().contains("is not defined.")) {
+// throw e;
+// }
+//
+// assertTrue(expectedAlerts.length == 1);
+// final String msg = e.getCause().getMessage();
+// assertTrue(msg, msg.contains(expectedAlerts[0]));
+// }
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591____() throws Exception {
+// charset(TestCharset.ISO88591, null, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591___UTF8_() throws Exception {
+// charset(TestCharset.ISO88591, null, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _ISO88591___ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, null, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _ISO88591__UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591__() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _ISO88591__ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _ISO88591_UTF8__ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_UTF8__BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, null, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_UTF8_UTF8_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _ISO88591_UTF8_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_UTF8_ISO88591_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591__() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _ISO88591_UTF8_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591___() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591__UTF8_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _ISO88591_ISO88591__ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_UTF8__BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_UTF8_UTF8_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _ISO88591_ISO88591_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_UTF8_ISO88591_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591__() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _ISO88591_ISO88591_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _UTF8_ISO88591_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591_ISO88591__() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _UTF8_ISO88591_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _UTF8_ISO88591__ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591__UTF8_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591___() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _UTF8_UTF8_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8_ISO88591__() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _UTF8_UTF8_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _UTF8_UTF8__ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8___BOMUTF16BE() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, null, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _UTF8__ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8__ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8__ISO88591__() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _UTF8__UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _UTF8___ISO88591_() throws Exception {
+// charset(TestCharset.UTF8, null, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8__ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8__ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void __ISO88591_ISO88591_ISO88591_() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591_ISO88591_UTF8_() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591_ISO88591__() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void __ISO88591_UTF8_ISO88591_() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void __ISO88591__ISO88591_() throws Exception {
+// charset(null, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591__UTF8_() throws Exception {
+// charset(null, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591___() throws Exception {
+// charset(null, TestCharset.ISO88591, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void __UTF8_ISO88591_ISO88591_() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __UTF8_ISO88591_UTF8_() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void __UTF8_ISO88591__() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void __UTF8_UTF8_ISO88591_() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void __UTF8__ISO88591_() throws Exception {
+// charset(null, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void ___ISO88591_ISO88591_() throws Exception {
+// charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void ___ISO88591_UTF8_() throws Exception {
+// charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void ___ISO88591__() throws Exception {
+// charset(null, null, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void ___UTF8_ISO88591_() throws Exception {
+// charset(null, null, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void ____ISO88591_() throws Exception {
+// charset(null, null, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void ____UTF8_() throws Exception {
+// charset(null, null, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _____() throws Exception {
+// charset(null, null, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591_ISO88591__BOMUTF8() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __UTF8_ISO88591__BOMUTF8() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void ___ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void ___ISO88591__BOMUTF8() throws Exception {
+// charset(null, null, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _GB2312_ISO88591_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591_ISO88591__() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _GB2312_ISO88591_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _GB2312_ISO88591__ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591__UTF8_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591___() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _GB2312_UTF8_ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_UTF8_ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_UTF8_ISO88591__() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _GB2312_UTF8_UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _GB2312_UTF8__ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "?????", "???", "??"})
+// public void _GB2312__ISO88591_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312__ISO88591_UTF8_() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312__ISO88591__() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _GB2312__UTF8_ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "�", "?????", "???", "??"})
+// public void _GB2312___ISO88591_() throws Exception {
+// charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
+// @NotYetImplemented
+// public void _GB2312___UTF8_() throws Exception {
+// charset(TestCharset.GB2312, null, null, TestCharset.UTF8, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
+// @NotYetImplemented
+// public void _GB2312____() throws Exception {
+// charset(TestCharset.GB2312, null, null, null, null);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_UTF8_ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312__ISO88591_UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312__ISO88591__BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _GB2312__ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _ISO88591__ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void _UTF8__ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void __UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+// IE = {"a", "ä", "أهلاً", "мир", "房间"})
+// public void ___ISO88591_ISO88591_BOMUTF8() throws Exception {
+// charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// @NotYetImplemented(IE)
+// public void _GB2312____BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, null, null, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// @NotYetImplemented(IE)
+// public void _GB2312___UTF8_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, null, TestCharset.UTF8, BOM_UTF_8);
+// }
+//
+// /**
+// * @throws Exception if the test fails
+// */
+// @Test
+// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+// @NotYetImplemented(IE)
+// public void _GB2312___ISO88591_BOMUTF8() throws Exception {
+// charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, BOM_UTF_8);
+// }
}
From a9f03be28b9826446093ab123a8491c8750f680e Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 09:57:16 +0200
Subject: [PATCH 009/475] try to make the build working
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 797ec182433..c45e926df4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1089,7 +1089,7 @@
org.apache.commons
commons-lang3
- 3.9
+ 3.8.1
org.apache.commons
From cd6c6f0bdcd6e8158f3f2c8715d16939e2b769c2 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 10:51:34 +0200
Subject: [PATCH 010/475] jetty update
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c45e926df4f..a4684718795 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
yyyy-MM-dd HH:mm
-Xdoclint:none
- 9.4.16.v20190411
+ 9.4.17.v20190418
3.141.59
2.35.1
From 4cb347df704e4d0c68722923af67cdb290bc03e4 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 11:21:25 +0200
Subject: [PATCH 011/475] report all in one error
---
.../gargoylesoftware/htmlunit/ExternalTest.java | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java b/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java
index 8bd40f77b62..cb31a143d40 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java
@@ -23,6 +23,7 @@
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.HashMap;
+import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -30,6 +31,7 @@
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
+import org.junit.Assert;
import org.junit.Test;
import com.gargoylesoftware.htmlunit.html.DomNode;
@@ -75,6 +77,8 @@ public void testEnvironment() throws Exception {
public void pom() throws Exception {
final Map properties = new HashMap<>();
final List lines = FileUtils.readLines(new File("pom.xml"), ISO_8859_1);
+
+ final List wrongVersions = new LinkedList();
for (int i = 0; i < lines.size(); i++) {
final String line = lines.get(i);
if (line.trim().equals("")) {
@@ -88,11 +92,20 @@ public void pom() throws Exception {
if (version.startsWith("${")) {
version = properties.get(version.substring(2, version.length() - 1));
}
- assertVersion(groupId, artifactId, version);
+ try {
+ assertVersion(groupId, artifactId, version);
+ }
+ catch (final AssertionError e) {
+ wrongVersions.add(e.getMessage());
+ }
}
}
}
+ if (wrongVersions.size() > 0) {
+ Assert.fail(String.join("\n ", wrongVersions));
+ }
+
assertVersion("org.sonatype.oss", "oss-parent", "9");
}
From e29b16eff5a1259d4a7242293961e9b84ea72da4 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 12:08:44 +0200
Subject: [PATCH 012/475] revert jetty change
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a4684718795..c45e926df4f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
yyyy-MM-dd HH:mm
-Xdoclint:none
- 9.4.17.v20190418
+ 9.4.16.v20190411
3.141.59
2.35.1
From 3b866e773cb04a17a9b205249aae2e57c248cfb5 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 12:09:11 +0200
Subject: [PATCH 013/475] enable the tests again
---
.../htmlunit/html/HtmlScript3Test.java | 2752 ++++++++---------
1 file changed, 1376 insertions(+), 1376 deletions(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index f36e9a5672a..e29cd80dbc5 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -14,32 +14,32 @@
*/
package com.gargoylesoftware.htmlunit.html;
-//import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
-//import static java.nio.charset.StandardCharsets.ISO_8859_1;
-//import static java.nio.charset.StandardCharsets.UTF_8;
-//
-//import java.net.URL;
-//import java.nio.charset.Charset;
-//import java.nio.charset.StandardCharsets;
-//import java.util.ArrayList;
-//import java.util.Collection;
-//import java.util.List;
-//
-//import org.apache.commons.io.ByteOrderMark;
-//import org.apache.commons.lang3.ArrayUtils;
-//import org.junit.Test;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+import static java.nio.charset.StandardCharsets.ISO_8859_1;
+import static java.nio.charset.StandardCharsets.UTF_8;
+
+import java.net.URL;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.commons.io.ByteOrderMark;
+import org.apache.commons.lang3.ArrayUtils;
+import org.junit.Test;
import org.junit.runner.RunWith;
-//import org.junit.runners.Parameterized.Parameter;
-//import org.junit.runners.Parameterized.Parameters;
-//import org.openqa.selenium.WebDriver;
-//import org.openqa.selenium.WebDriverException;
-//
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebDriverException;
+
import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner;
-//import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner.Default;
-//import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
-//import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
-//import com.gargoylesoftware.htmlunit.util.MimeType;
+import com.gargoylesoftware.htmlunit.BrowserParameterizedRunner.Default;
+import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
+import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
+import com.gargoylesoftware.htmlunit.util.MimeType;
/**
* Tests encoding handling for {@link HtmlScript}.
@@ -49,1357 +49,1357 @@
@RunWith(BrowserParameterizedRunner.class)
public class HtmlScript3Test extends WebDriverTestCase {
-// private static final String BOM_UTF_16LE = "BOMUTF16LE";
-// private static final String BOM_UTF_16BE = "BOMUTF16BE";
-// private static final String BOM_UTF_8 = "BOMUTF8";
-//
-// private enum TestCharset {
-// UTF8("UTF8", UTF_8),
-// ISO88591("ISO88591", ISO_8859_1),
-// GB2312("GB2312", Charset.forName("GB2312"));
-//
-// private final String label_;
-// private final Charset charset_;
-//
-// TestCharset(final String label, final Charset charset) {
-// label_ = label;
-// charset_ = charset;
-// }
-//
-// @Override
-// public String toString() {
-// return label_;
-// }
-//
-// public Charset getCharset() {
-// return charset_;
-// }
-// }
-//
-// /**
-// * Returns the parameterized data.
-// * @return the parameterized data
-// * @throws Exception if an error occurs
-// */
-// @Parameters
-// public static Collection data() throws Exception {
-// final List list = new ArrayList<>();
-//
-// final TestCharset[] charsetHtmlResponseHeader =
-// new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.GB2312};
-// final TestCharset[] charsetAttribute = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
-// final TestCharset[] charsetResponseHeader = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
-// final TestCharset[] charsetResponseEncoding = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
-// final String[] bom = new String[] {null, BOM_UTF_8, BOM_UTF_16LE, BOM_UTF_16BE};
-//
-// for (final Object charsetHtml : charsetHtmlResponseHeader) {
-// for (final Object attribute : charsetAttribute) {
-// for (final Object responseHeader : charsetResponseHeader) {
-// for (final Object responseEncoding : charsetResponseEncoding) {
-// for (final Object b : bom) {
-// list.add(new Object[] {charsetHtml, attribute, responseHeader, responseEncoding, b});
-// }
-// }
-// }
-// }
-// }
-// return list;
-// }
-//
-// /**
-// * The charsetHtmlResponseHeader.
-// */
-// @Parameter
-// public TestCharset charsetHtmlResponseHeader_;
-//
-// /**
-// * The charsetAttribute.
-// */
-// @Parameter(1)
-// public TestCharset charsetAttribute_;
-//
-// /**
-// * The charsetResponseHeader.
-// */
-// @Parameter(2)
-// public TestCharset charsetResponseHeader_;
-//
-// /**
-// * The charsetResponseEncoding.
-// */
-// @Parameter(3)
-// public TestCharset charsetResponseEncoding_;
-//
-// /**
-// * The bom.
-// */
-// @Parameter(4)
-// public String bom_;
-//
-// /**
-// * The default test.
-// * @throws Exception if an error occurs
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// @Default
-// public void charset() throws Exception {
-// charset(charsetHtmlResponseHeader_, charsetAttribute_, charsetResponseHeader_, charsetResponseEncoding_, bom_);
-// }
-//
-// private void charset(
-// final TestCharset charsetHtmlResponse,
-// final TestCharset charsetAttribute,
-// final TestCharset charsetResponseHeader,
-// final TestCharset charsetResponseEncoding,
-// final String bom) throws Exception {
-//
-// // use always a different url to avoid caching effects
-// final URL cssUrl = new URL(URL_SECOND, "" + System.currentTimeMillis() + ".js");
-//
-// String html
-// = "\n"
-// + " "
-// + " \n"
-// + "\n"
-// + "\n"
-// + "";
-//
-// String scriptContentType = MimeType.APPLICATION_JAVASCRIPT;
-// if (charsetResponseHeader != null) {
-// scriptContentType = scriptContentType + "; charset="
-// + charsetResponseHeader.getCharset().name().toLowerCase();
-// }
-// final String js = "alert('a'); alert('ä'); alert('أهلاً'); alert('мир'); alert('房间');";
-//
-// byte[] script = null;
-// if (charsetResponseEncoding == null) {
-// script = js.getBytes(UTF_8);
-// }
-// else {
-// script = js.getBytes(charsetResponseEncoding.getCharset());
-// }
-//
-// if (BOM_UTF_8.equals(bom)) {
-// script = ArrayUtils.addAll(ByteOrderMark.UTF_8.getBytes(), js.getBytes(StandardCharsets.UTF_8));
-// }
-// else if (BOM_UTF_16BE.equals(bom)) {
-// script = ArrayUtils.addAll(ByteOrderMark.UTF_16BE.getBytes(), js.getBytes(StandardCharsets.UTF_16BE));
-// }
-// else if (BOM_UTF_16LE.equals(bom)) {
-// script = ArrayUtils.addAll(ByteOrderMark.UTF_16LE.getBytes(), js.getBytes(StandardCharsets.UTF_16LE));
-// }
-// getMockWebConnection().setResponse(cssUrl, script, 200, "OK", scriptContentType, null);
-//
-// String htmlContentType = MimeType.TEXT_HTML;
-// if (charsetHtmlResponse != null) {
-// htmlContentType = htmlContentType + "; charset=" + charsetHtmlResponse.getCharset().name();
-// }
-//
-// Charset htmlResponseCharset = ISO_8859_1;
-// if (charsetHtmlResponse != null) {
-// htmlResponseCharset = charsetHtmlResponse.getCharset();
-// }
-//
-// expandExpectedAlertsVariables(URL_FIRST);
-// final String[] expectedAlerts = getExpectedAlerts();
-// try {
-// final WebDriver driver = loadPage2(html, URL_FIRST,
-// htmlContentType, htmlResponseCharset, null);
-//
-// if (expectedAlerts.length == 1) {
-// final List actualAlerts = getCollectedAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts.length);
-// assertEquals(1, actualAlerts.size());
-//
-// final String msg = actualAlerts.get(0);
-// assertEquals(expectedAlerts[0], "Invalid token");
-// assertTrue(msg, msg.contains("Invalid or unexpected token")
-// || msg.contains("illegal character")
-// || msg.contains("Ungültiges Zeichen"));
-// }
-// else {
-// verifyAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts);
-// }
-// }
-// catch (final WebDriverException e) {
-// if (!e.getCause().getMessage().contains("illegal character")
-// && !e.getCause().getMessage().contains("is not defined.")) {
-// throw e;
-// }
-//
-// assertTrue(expectedAlerts.length == 1);
-// final String msg = e.getCause().getMessage();
-// assertTrue(msg, msg.contains(expectedAlerts[0]));
-// }
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591____() throws Exception {
-// charset(TestCharset.ISO88591, null, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591___UTF8_() throws Exception {
-// charset(TestCharset.ISO88591, null, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _ISO88591___ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, null, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _ISO88591__UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591__() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _ISO88591__ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591_ISO88591_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _ISO88591_UTF8__ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_UTF8__BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, null, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_UTF8_UTF8_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _ISO88591_UTF8_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_UTF8_ISO88591_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591__() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _ISO88591_UTF8_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591___() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591__UTF8_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _ISO88591_ISO88591__ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_UTF8__BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_UTF8_UTF8_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _ISO88591_ISO88591_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_UTF8_ISO88591_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591__() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _ISO88591_ISO88591_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _UTF8_ISO88591_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591_ISO88591__() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _UTF8_ISO88591_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _UTF8_ISO88591__ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591__UTF8_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591___() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _UTF8_UTF8_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8_ISO88591__() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _UTF8_UTF8_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _UTF8_UTF8__ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8___BOMUTF16BE() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, null, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _UTF8__ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8__ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8__ISO88591__() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _UTF8__UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _UTF8___ISO88591_() throws Exception {
-// charset(TestCharset.UTF8, null, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8__ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8__ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void __ISO88591_ISO88591_ISO88591_() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591_ISO88591_UTF8_() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591_ISO88591__() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void __ISO88591_UTF8_ISO88591_() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void __ISO88591__ISO88591_() throws Exception {
-// charset(null, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591__UTF8_() throws Exception {
-// charset(null, TestCharset.ISO88591, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591___() throws Exception {
-// charset(null, TestCharset.ISO88591, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void __UTF8_ISO88591_ISO88591_() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __UTF8_ISO88591_UTF8_() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void __UTF8_ISO88591__() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void __UTF8_UTF8_ISO88591_() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void __UTF8__ISO88591_() throws Exception {
-// charset(null, TestCharset.UTF8, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void ___ISO88591_ISO88591_() throws Exception {
-// charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void ___ISO88591_UTF8_() throws Exception {
-// charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void ___ISO88591__() throws Exception {
-// charset(null, null, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void ___UTF8_ISO88591_() throws Exception {
-// charset(null, null, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void ____ISO88591_() throws Exception {
-// charset(null, null, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void ____UTF8_() throws Exception {
-// charset(null, null, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _____() throws Exception {
-// charset(null, null, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591_ISO88591__BOMUTF8() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __UTF8_ISO88591__BOMUTF8() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void ___ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void ___ISO88591__BOMUTF8() throws Exception {
-// charset(null, null, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _GB2312_ISO88591_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591_ISO88591__() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _GB2312_ISO88591_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _GB2312_ISO88591__ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591__UTF8_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591___() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _GB2312_UTF8_ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_UTF8_ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_UTF8_ISO88591__() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _GB2312_UTF8_UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _GB2312_UTF8__ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "?????", "???", "??"})
-// public void _GB2312__ISO88591_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312__ISO88591_UTF8_() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312__ISO88591__() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _GB2312__UTF8_ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.UTF8, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "�", "?????", "???", "??"})
-// public void _GB2312___ISO88591_() throws Exception {
-// charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
-// @NotYetImplemented
-// public void _GB2312___UTF8_() throws Exception {
-// charset(TestCharset.GB2312, null, null, TestCharset.UTF8, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
-// @NotYetImplemented
-// public void _GB2312____() throws Exception {
-// charset(TestCharset.GB2312, null, null, null, null);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_UTF8_ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312__ISO88591_UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312__ISO88591__BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _GB2312__ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _ISO88591__ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void _UTF8__ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void __UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
-// IE = {"a", "ä", "أهلاً", "мир", "房间"})
-// public void ___ISO88591_ISO88591_BOMUTF8() throws Exception {
-// charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// @NotYetImplemented(IE)
-// public void _GB2312____BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, null, null, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// @NotYetImplemented(IE)
-// public void _GB2312___UTF8_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, null, TestCharset.UTF8, BOM_UTF_8);
-// }
-//
-// /**
-// * @throws Exception if the test fails
-// */
-// @Test
-// @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
-// @NotYetImplemented(IE)
-// public void _GB2312___ISO88591_BOMUTF8() throws Exception {
-// charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, BOM_UTF_8);
-// }
+ private static final String BOM_UTF_16LE = "BOMUTF16LE";
+ private static final String BOM_UTF_16BE = "BOMUTF16BE";
+ private static final String BOM_UTF_8 = "BOMUTF8";
+
+ private enum TestCharset {
+ UTF8("UTF8", UTF_8),
+ ISO88591("ISO88591", ISO_8859_1),
+ GB2312("GB2312", Charset.forName("GB2312"));
+
+ private final String label_;
+ private final Charset charset_;
+
+ TestCharset(final String label, final Charset charset) {
+ label_ = label;
+ charset_ = charset;
+ }
+
+ @Override
+ public String toString() {
+ return label_;
+ }
+
+ public Charset getCharset() {
+ return charset_;
+ }
+ }
+
+ /**
+ * Returns the parameterized data.
+ * @return the parameterized data
+ * @throws Exception if an error occurs
+ */
+ @Parameters
+ public static Collection data() throws Exception {
+ final List list = new ArrayList<>();
+
+ final TestCharset[] charsetHtmlResponseHeader =
+ new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.GB2312};
+ final TestCharset[] charsetAttribute = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+ final TestCharset[] charsetResponseHeader = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+ final TestCharset[] charsetResponseEncoding = new TestCharset[] {null, TestCharset.UTF8, TestCharset.ISO88591};
+ final String[] bom = new String[] {null, BOM_UTF_8, BOM_UTF_16LE, BOM_UTF_16BE};
+
+ for (final Object charsetHtml : charsetHtmlResponseHeader) {
+ for (final Object attribute : charsetAttribute) {
+ for (final Object responseHeader : charsetResponseHeader) {
+ for (final Object responseEncoding : charsetResponseEncoding) {
+ for (final Object b : bom) {
+ list.add(new Object[] {charsetHtml, attribute, responseHeader, responseEncoding, b});
+ }
+ }
+ }
+ }
+ }
+ return list;
+ }
+
+ /**
+ * The charsetHtmlResponseHeader.
+ */
+ @Parameter
+ public TestCharset charsetHtmlResponseHeader_;
+
+ /**
+ * The charsetAttribute.
+ */
+ @Parameter(1)
+ public TestCharset charsetAttribute_;
+
+ /**
+ * The charsetResponseHeader.
+ */
+ @Parameter(2)
+ public TestCharset charsetResponseHeader_;
+
+ /**
+ * The charsetResponseEncoding.
+ */
+ @Parameter(3)
+ public TestCharset charsetResponseEncoding_;
+
+ /**
+ * The bom.
+ */
+ @Parameter(4)
+ public String bom_;
+
+ /**
+ * The default test.
+ * @throws Exception if an error occurs
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ @Default
+ public void charset() throws Exception {
+ charset(charsetHtmlResponseHeader_, charsetAttribute_, charsetResponseHeader_, charsetResponseEncoding_, bom_);
+ }
+
+ private void charset(
+ final TestCharset charsetHtmlResponse,
+ final TestCharset charsetAttribute,
+ final TestCharset charsetResponseHeader,
+ final TestCharset charsetResponseEncoding,
+ final String bom) throws Exception {
+
+ // use always a different url to avoid caching effects
+ final URL cssUrl = new URL(URL_SECOND, "" + System.currentTimeMillis() + ".js");
+
+ String html
+ = "\n"
+ + " "
+ + " \n"
+ + "\n"
+ + "\n"
+ + "";
+
+ String scriptContentType = MimeType.APPLICATION_JAVASCRIPT;
+ if (charsetResponseHeader != null) {
+ scriptContentType = scriptContentType + "; charset="
+ + charsetResponseHeader.getCharset().name().toLowerCase();
+ }
+ final String js = "alert('a'); alert('ä'); alert('أهلاً'); alert('мир'); alert('房间');";
+
+ byte[] script = null;
+ if (charsetResponseEncoding == null) {
+ script = js.getBytes(UTF_8);
+ }
+ else {
+ script = js.getBytes(charsetResponseEncoding.getCharset());
+ }
+
+ if (BOM_UTF_8.equals(bom)) {
+ script = ArrayUtils.addAll(ByteOrderMark.UTF_8.getBytes(), js.getBytes(StandardCharsets.UTF_8));
+ }
+ else if (BOM_UTF_16BE.equals(bom)) {
+ script = ArrayUtils.addAll(ByteOrderMark.UTF_16BE.getBytes(), js.getBytes(StandardCharsets.UTF_16BE));
+ }
+ else if (BOM_UTF_16LE.equals(bom)) {
+ script = ArrayUtils.addAll(ByteOrderMark.UTF_16LE.getBytes(), js.getBytes(StandardCharsets.UTF_16LE));
+ }
+ getMockWebConnection().setResponse(cssUrl, script, 200, "OK", scriptContentType, null);
+
+ String htmlContentType = MimeType.TEXT_HTML;
+ if (charsetHtmlResponse != null) {
+ htmlContentType = htmlContentType + "; charset=" + charsetHtmlResponse.getCharset().name();
+ }
+
+ Charset htmlResponseCharset = ISO_8859_1;
+ if (charsetHtmlResponse != null) {
+ htmlResponseCharset = charsetHtmlResponse.getCharset();
+ }
+
+ expandExpectedAlertsVariables(URL_FIRST);
+ final String[] expectedAlerts = getExpectedAlerts();
+ try {
+ final WebDriver driver = loadPage2(html, URL_FIRST,
+ htmlContentType, htmlResponseCharset, null);
+
+ if (expectedAlerts.length == 1) {
+ final List actualAlerts = getCollectedAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts.length);
+ assertEquals(1, actualAlerts.size());
+
+ final String msg = actualAlerts.get(0);
+ assertEquals(expectedAlerts[0], "Invalid token");
+ assertTrue(msg, msg.contains("Invalid or unexpected token")
+ || msg.contains("illegal character")
+ || msg.contains("Ungültiges Zeichen"));
+ }
+ else {
+ verifyAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts);
+ }
+ }
+ catch (final WebDriverException e) {
+ if (!e.getCause().getMessage().contains("illegal character")
+ && !e.getCause().getMessage().contains("is not defined.")) {
+ throw e;
+ }
+
+ assertTrue(expectedAlerts.length == 1);
+ final String msg = e.getCause().getMessage();
+ assertTrue(msg, msg.contains(expectedAlerts[0]));
+ }
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591____() throws Exception {
+ charset(TestCharset.ISO88591, null, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591___UTF8_() throws Exception {
+ charset(TestCharset.ISO88591, null, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _ISO88591___ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, null, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _ISO88591__UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591__() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _ISO88591__ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _ISO88591_UTF8__ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_UTF8__BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, null, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_UTF8_UTF8_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _ISO88591_UTF8_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_UTF8_ISO88591_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591__() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591_UTF8_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _ISO88591_UTF8_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591___() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591__UTF8_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _ISO88591_ISO88591__ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_UTF8__BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_UTF8_UTF8_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.UTF8, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _ISO88591_ISO88591_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_UTF8_ISO88591_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591__() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591_UTF8_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _ISO88591_ISO88591_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF16BE() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_16BE);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _UTF8_ISO88591_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591_ISO88591__() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _UTF8_ISO88591_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _UTF8_ISO88591__ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591__UTF8_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591___() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _UTF8_UTF8_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8_ISO88591__() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _UTF8_UTF8_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _UTF8_UTF8__ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8___BOMUTF16BE() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, null, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _UTF8__ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8__ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8__ISO88591__() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _UTF8__UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _UTF8___ISO88591_() throws Exception {
+ charset(TestCharset.UTF8, null, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8__ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8__ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void __ISO88591_ISO88591_ISO88591_() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591_ISO88591_UTF8_() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591_ISO88591__() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void __ISO88591_UTF8_ISO88591_() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void __ISO88591__ISO88591_() throws Exception {
+ charset(null, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591__UTF8_() throws Exception {
+ charset(null, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591___() throws Exception {
+ charset(null, TestCharset.ISO88591, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void __UTF8_ISO88591_ISO88591_() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __UTF8_ISO88591_UTF8_() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void __UTF8_ISO88591__() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void __UTF8_UTF8_ISO88591_() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void __UTF8__ISO88591_() throws Exception {
+ charset(null, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void ___ISO88591_ISO88591_() throws Exception {
+ charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void ___ISO88591_UTF8_() throws Exception {
+ charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void ___ISO88591__() throws Exception {
+ charset(null, null, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void ___UTF8_ISO88591_() throws Exception {
+ charset(null, null, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void ____ISO88591_() throws Exception {
+ charset(null, null, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void ____UTF8_() throws Exception {
+ charset(null, null, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _____() throws Exception {
+ charset(null, null, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591_ISO88591__BOMUTF8() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __UTF8_ISO88591__BOMUTF8() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void ___ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(null, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void ___ISO88591__BOMUTF8() throws Exception {
+ charset(null, null, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _GB2312_ISO88591_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591_ISO88591__() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _GB2312_ISO88591_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _GB2312_ISO88591__ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591__UTF8_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591___() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _GB2312_UTF8_ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_UTF8_ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_UTF8_ISO88591__() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _GB2312_UTF8_UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _GB2312_UTF8__ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "?????", "???", "??"})
+ public void _GB2312__ISO88591_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312__ISO88591_UTF8_() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312__ISO88591__() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _GB2312__UTF8_ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.UTF8, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "�", "?????", "???", "??"})
+ public void _GB2312___ISO88591_() throws Exception {
+ charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
+ @NotYetImplemented
+ public void _GB2312___UTF8_() throws Exception {
+ charset(TestCharset.GB2312, null, null, TestCharset.UTF8, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "盲", "兀賴賱丕賸", "屑懈褉", "鎴块棿"})
+ @NotYetImplemented
+ public void _GB2312____() throws Exception {
+ charset(TestCharset.GB2312, null, null, null, null);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_UTF8_ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_UTF8_ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312__ISO88591_UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312__ISO88591__BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _GB2312__ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _ISO88591__ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.ISO88591, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8_UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void _UTF8__ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.UTF8, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __ISO88591_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(null, TestCharset.ISO88591, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void __UTF8_ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(null, TestCharset.UTF8, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts(DEFAULT = {"a", "ä", "أهلاً", "мир", "房间"},
+ IE = {"a", "ä", "أهلاً", "мир", "房间"})
+ public void ___ISO88591_ISO88591_BOMUTF8() throws Exception {
+ charset(null, null, TestCharset.ISO88591, TestCharset.ISO88591, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ @NotYetImplemented(IE)
+ public void _GB2312____BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, null, null, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ @NotYetImplemented(IE)
+ public void _GB2312___UTF8_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, null, TestCharset.UTF8, BOM_UTF_8);
+ }
+
+ /**
+ * @throws Exception if the test fails
+ */
+ @Test
+ @Alerts({"a", "ä", "أهلاً", "мир", "房间"})
+ @NotYetImplemented(IE)
+ public void _GB2312___ISO88591_BOMUTF8() throws Exception {
+ charset(TestCharset.GB2312, null, null, TestCharset.ISO88591, BOM_UTF_8);
+ }
}
From 95e3a82c250442e3446bbc0d5e3c1a0882b66486 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 13:01:24 +0200
Subject: [PATCH 014/475] back to the latest versions
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index c45e926df4f..2e75add5979 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
yyyy-MM-dd HH:mm
-Xdoclint:none
- 9.4.16.v20190411
+ 9.4.17.v20190418
3.141.59
2.35.1
@@ -1089,7 +1089,7 @@
org.apache.commons
commons-lang3
- 3.8.1
+ 3.9
org.apache.commons
From f59f02193f23c56fcdd01d9a4022992014eac347 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 15:46:56 +0200
Subject: [PATCH 015/475] fight with our build stuck
---
.../htmlunit/html/HtmlScript3Test.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index e29cd80dbc5..788d6124413 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -24,6 +24,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
+import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.io.ByteOrderMark;
import org.apache.commons.lang3.ArrayUtils;
@@ -53,6 +54,8 @@ public class HtmlScript3Test extends WebDriverTestCase {
private static final String BOM_UTF_16BE = "BOMUTF16BE";
private static final String BOM_UTF_8 = "BOMUTF8";
+ private static final AtomicInteger serverRestartCount = new AtomicInteger();
+
private enum TestCharset {
UTF8("UTF8", UTF_8),
ISO88591("ISO88591", ISO_8859_1),
@@ -208,8 +211,12 @@ else if (BOM_UTF_16LE.equals(bom)) {
expandExpectedAlertsVariables(URL_FIRST);
final String[] expectedAlerts = getExpectedAlerts();
try {
- final WebDriver driver = loadPage2(html, URL_FIRST,
- htmlContentType, htmlResponseCharset, null);
+ final int count = serverRestartCount.incrementAndGet();
+ if (count == 400) {
+ stopWebServers();
+ serverRestartCount.set(0);
+ }
+ final WebDriver driver = loadPage2(html, URL_FIRST, htmlContentType, htmlResponseCharset, null);
if (expectedAlerts.length == 1) {
final List actualAlerts = getCollectedAlerts(DEFAULT_WAIT_TIME, driver, expectedAlerts.length);
From 98cd6731fdec6fdbb492c271ef8d4c351d4b7c92 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 18:20:52 +0200
Subject: [PATCH 016/475] try to close the closeable client after use
---
.../htmlunit/HttpWebConnection.java | 34 ++++++++++++-------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java b/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
index 1252f64b3d6..f6bfe6d02c3 100644
--- a/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
+++ b/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
@@ -97,6 +97,7 @@
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.entity.mime.content.InputStreamBody;
import org.apache.http.impl.client.BasicAuthCache;
+import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.protocol.HttpContext;
@@ -167,14 +168,14 @@ public HttpWebConnection(final WebClient webClient) {
*/
@Override
public WebResponse getResponse(final WebRequest request) throws IOException {
- final URL url = request.getUrl();
final HttpClientBuilder builder = reconfigureHttpClientIfNeeded(getHttpClientBuilder());
- final HttpContext httpContext = getHttpContext();
if (connectionManager_ == null) {
connectionManager_ = createConnectionManager(builder);
}
builder.setConnectionManager(connectionManager_);
+ // this is done in createHttpClientBuilder() already
+ // builder.setConnectionManagerShared(true);
HttpUriRequest httpMethod = null;
try {
@@ -182,21 +183,26 @@ public WebResponse getResponse(final WebRequest request) throws IOException {
httpMethod = makeHttpMethod(request, builder);
}
catch (final URISyntaxException e) {
- throw new IOException("Unable to create URI from URL: " + url.toExternalForm()
+ throw new IOException("Unable to create URI from URL: " + request.getUrl().toExternalForm()
+ " (reason: " + e.getMessage() + ")", e);
}
final HttpHost hostConfiguration = getHostConfiguration(request);
final long startTime = System.currentTimeMillis();
+ final HttpContext httpContext = getHttpContext();
HttpResponse httpResponse = null;
try {
- httpResponse = builder.build().execute(hostConfiguration, httpMethod, httpContext);
+ try (CloseableHttpClient closeableHttpClient = builder.build()) {
+ httpResponse = closeableHttpClient.execute(hostConfiguration, httpMethod, httpContext);
+ }
}
catch (final SSLPeerUnverifiedException s) {
// Try to use only SSLv3 instead
if (webClient_.getOptions().isUseInsecureSSL()) {
HtmlUnitSSLConnectionSocketFactory.setUseSSL3Only(httpContext, true);
- httpResponse = builder.build().execute(hostConfiguration, httpMethod, httpContext);
+ try (CloseableHttpClient closeableHttpClient = builder.build()) {
+ httpResponse = closeableHttpClient.execute(hostConfiguration, httpMethod, httpContext);
+ }
}
else {
throw s;
@@ -514,9 +520,10 @@ private static HttpRequestBase buildHttpMethod(final HttpMethod submitMethod, fi
* @return the initialized HTTP client
*/
protected HttpClientBuilder getHttpClientBuilder() {
- HttpClientBuilder builder = httpClientBuilder_.get(Thread.currentThread());
+ final Thread currentThread = Thread.currentThread();
+ HttpClientBuilder builder = httpClientBuilder_.get(currentThread);
if (builder == null) {
- builder = createHttpClient();
+ builder = createHttpClientBuilder();
// this factory is required later
// to be sure this is done, we do it outside the createHttpClient() call
@@ -527,7 +534,7 @@ protected HttpClientBuilder getHttpClientBuilder() {
builder.setDefaultCookieStore(new HtmlUnitCookieStore(webClient_.getCookieManager()));
builder.setUserAgent(webClient_.getBrowserVersion().getUserAgent());
- httpClientBuilder_.put(Thread.currentThread(), builder);
+ httpClientBuilder_.put(currentThread, builder);
}
return builder;
@@ -551,12 +558,14 @@ protected int getTimeout() {
* some tracking; see feature request 1438216).
* @return the HttpClientBuilder that will be used by this WebConnection
*/
- protected HttpClientBuilder createHttpClient() {
+ protected HttpClientBuilder createHttpClientBuilder() {
final HttpClientBuilder builder = HttpClientBuilder.create();
builder.setRedirectStrategy(new HtmlUnitRedirectStrategie());
configureTimeout(builder, getTimeout());
configureHttpsScheme(builder);
builder.setMaxConnPerRoute(6);
+
+ builder.setConnectionManagerShared(true);
return builder;
}
@@ -606,6 +615,7 @@ private HttpClientBuilder reconfigureHttpClientIfNeeded(final HttpClientBuilder
|| options.getSSLClientProtocols() != usedOptions_.getSSLClientProtocols()
|| options.getProxyConfig() != usedOptions_.getProxyConfig()) {
configureHttpsScheme(httpClientBuilder);
+
if (connectionManager_ != null) {
connectionManager_.shutdown();
connectionManager_ = null;
@@ -1003,10 +1013,8 @@ public synchronized String toString() {
*/
@Override
public void close() {
- final Thread current = Thread.currentThread();
- if (httpClientBuilder_.get(current) != null) {
- httpClientBuilder_.remove(current);
- }
+ httpClientBuilder_.clear();
+
if (connectionManager_ != null) {
connectionManager_.shutdown();
connectionManager_ = null;
From c90fe55b4a0995f7df2343c537a7cc41a542c4b4 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 18:21:27 +0200
Subject: [PATCH 017/475] try to fix the build
---
.../gargoylesoftware/htmlunit/html/HtmlScript3Test.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
index 788d6124413..bb065c885ae 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript3Test.java
@@ -24,7 +24,6 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.io.ByteOrderMark;
import org.apache.commons.lang3.ArrayUtils;
@@ -54,7 +53,7 @@ public class HtmlScript3Test extends WebDriverTestCase {
private static final String BOM_UTF_16BE = "BOMUTF16BE";
private static final String BOM_UTF_8 = "BOMUTF8";
- private static final AtomicInteger serverRestartCount = new AtomicInteger();
+ private static int ServerRestartCount_ = 0;
private enum TestCharset {
UTF8("UTF8", UTF_8),
@@ -211,10 +210,10 @@ else if (BOM_UTF_16LE.equals(bom)) {
expandExpectedAlertsVariables(URL_FIRST);
final String[] expectedAlerts = getExpectedAlerts();
try {
- final int count = serverRestartCount.incrementAndGet();
- if (count == 400) {
+ ServerRestartCount_++;
+ if (ServerRestartCount_ == 200) {
stopWebServers();
- serverRestartCount.set(0);
+ ServerRestartCount_ = 0;
}
final WebDriver driver = loadPage2(html, URL_FIRST, htmlContentType, htmlResponseCharset, null);
From bafba46ca69be05e87ee05850d45a48b72296e60 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 19:02:49 +0200
Subject: [PATCH 018/475] fix compiler error
---
.../com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java b/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
index 8ff8b7d9885..e561eb6e7fe 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/HttpWebConnectionTest.java
@@ -233,7 +233,7 @@ public void designedForExtension() throws Exception {
final boolean[] tabCalled = {false};
final WebConnection myWebConnection = new HttpWebConnection(webClient) {
@Override
- protected HttpClientBuilder createHttpClient() {
+ protected HttpClientBuilder createHttpClientBuilder() {
tabCalled[0] = true;
return HttpClientBuilder.create();
}
From 51bf2116a95de53c2b96459bafcede3b3501c2b3 Mon Sep 17 00:00:00 2001
From: rbri
Date: Sun, 21 Apr 2019 19:52:37 +0200
Subject: [PATCH 019/475] try to fix the build
---
.../javascript/host/css/StyleAttributesIterableTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributesIterableTest.java b/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributesIterableTest.java
index d8f0bf25ecd..54da8294f2b 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributesIterableTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributesIterableTest.java
@@ -40,6 +40,8 @@
@ToRunWithRealBrowsers
public class StyleAttributesIterableTest extends WebDriverTestCase {
+ private static int ServerRestartCount_ = 0;
+
/**
* Returns the parameterized data.
* @return the parameterized data
@@ -83,6 +85,12 @@ public void test() throws Exception {
}
private void test(final String propertyName) throws Exception {
+ ServerRestartCount_++;
+ if (ServerRestartCount_ == 200) {
+ stopWebServers();
+ ServerRestartCount_ = 0;
+ }
+
final String html =
""
- + " \n"
+ "";
+ ServerRestartCount_++;
+ if (ServerRestartCount_ == 200) {
+ stopWebServers();
+ ServerRestartCount_ = 0;
+ }
final WebDriver driver = loadPage2(html);
assertTitle(driver, getExpectedAlerts()[0]);
}
From 3d7f0559e49659c682e0b0dc96f26f5b56aeb289 Mon Sep 17 00:00:00 2001
From: rbri
Date: Tue, 23 Apr 2019 20:47:04 +0200
Subject: [PATCH 025/475] hopefully this makes the tests passed again
---
.../htmlunit/general/huge/ElementClosesElementTest.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/test/java/com/gargoylesoftware/htmlunit/general/huge/ElementClosesElementTest.java b/src/test/java/com/gargoylesoftware/htmlunit/general/huge/ElementClosesElementTest.java
index f3797cb897f..8ea7fdc9b6f 100644
--- a/src/test/java/com/gargoylesoftware/htmlunit/general/huge/ElementClosesElementTest.java
+++ b/src/test/java/com/gargoylesoftware/htmlunit/general/huge/ElementClosesElementTest.java
@@ -48,6 +48,8 @@
@RunWith(BrowserParameterizedRunner.class)
public class ElementClosesElementTest extends WebDriverTestCase {
+ private static int ServerRestartCount_ = 0;
+
/**
* Returns the parameterized data.
* @return the parameterized data
@@ -94,6 +96,11 @@ private void test(final String parent, final String child) throws Exception {
+ parentString + childString + suffix
+ "