[BUGFIX] Text/plain outputs always in unicode
This commit is contained in:
@@ -14,6 +14,7 @@ public class AllTests extends TestSuite {
|
||||
suite.addTestSuite(TestSVG.class);
|
||||
suite.addTestSuite(TestProxy.class);
|
||||
suite.addTestSuite(TestMap.class);
|
||||
suite.addTestSuite(TestCharset.class);
|
||||
// $JUnit-END$
|
||||
return suite;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ public class TestAsciiArt extends WebappTestCase {
|
||||
// Analyze response
|
||||
// Verifies the Content-Type header
|
||||
assertEquals("Response content type is not TEXT PLAIN", "text/plain", response.getContentType());
|
||||
assertEquals("Response character set is not UTF-8", "UTF-8", response.getCharacterSet());
|
||||
// Get the content and verify its size
|
||||
String diagram = response.getText();
|
||||
int diagramLen = diagram.length();
|
||||
|
||||
@@ -19,7 +19,7 @@ public class TestMap extends WebappTestCase {
|
||||
// Analyze response
|
||||
// Verifies the Content-Type header
|
||||
assertEquals("Response content type is not TEXT PLAIN", "text/plain", response.getContentType());
|
||||
assertEquals("Response character set is not ISO-8859-1", "ISO-8859-1", response.getCharacterSet());
|
||||
assertEquals("Response character set is not UTF-8", "UTF-8", response.getCharacterSet());
|
||||
// Get the content, check its first characters and verify its size
|
||||
String diagram = response.getText();
|
||||
assertTrue("Response content is not starting with <area", diagram.startsWith("<area"));
|
||||
|
||||
Reference in New Issue
Block a user