[BUGFIX] Text/plain outputs always in unicode

This commit is contained in:
maximesinclair
2013-09-13 19:55:07 +02:00
parent 7d7aa41168
commit beb8c490b0
6 changed files with 8 additions and 6 deletions

View File

@@ -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"));