aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/test/java/com/vaadin/ui/declarative/DesignTest.java')
-rw-r--r--server/src/test/java/com/vaadin/ui/declarative/DesignTest.java36
1 files changed, 21 insertions, 15 deletions
diff --git a/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java b/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
index 778e3ed53a..0b378ef54c 100644
--- a/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
+++ b/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
@@ -47,8 +47,9 @@ public class DesignTest {
private static Charset DEFAULT_CHARSET = Charset.defaultCharset();
@AfterClass
- public static void restoreCharset() throws NoSuchFieldException,
- SecurityException, IllegalArgumentException, IllegalAccessException {
+ public static void restoreCharset()
+ throws NoSuchFieldException, SecurityException,
+ IllegalArgumentException, IllegalAccessException {
setCharset(DEFAULT_CHARSET);
}
@@ -60,9 +61,10 @@ public class DesignTest {
String cp1251Html = getHtml();
setUtf8Charset();
String utf8Html = getHtml();
- Assert.assertEquals("Html written with UTF-8 as default encoding "
- + "differs from html written with cp1251 encoding", cp1251Html,
- utf8Html);
+ Assert.assertEquals(
+ "Html written with UTF-8 as default encoding "
+ + "differs from html written with cp1251 encoding",
+ cp1251Html, utf8Html);
}
@Test
@@ -71,9 +73,10 @@ public class DesignTest {
IllegalArgumentException, IllegalAccessException {
setCp1251Charset();
String cp1251Html = getHtml();
- Assert.assertEquals("Non ascii string parsed from serialized HTML "
- + "differs from expected", NON_ASCII_STRING,
- getHtmlLabelValue(cp1251Html));
+ Assert.assertEquals(
+ "Non ascii string parsed from serialized HTML "
+ + "differs from expected",
+ NON_ASCII_STRING, getHtmlLabelValue(cp1251Html));
}
@Test
@@ -82,9 +85,10 @@ public class DesignTest {
IllegalArgumentException, IllegalAccessException {
setUtf8Charset();
String utf8 = getHtml();
- Assert.assertEquals("Non ascii string parsed from serialized HTML "
- + "differs from expected", NON_ASCII_STRING,
- getHtmlLabelValue(utf8));
+ Assert.assertEquals(
+ "Non ascii string parsed from serialized HTML "
+ + "differs from expected",
+ NON_ASCII_STRING, getHtmlLabelValue(utf8));
}
private String getHtmlLabelValue(String html) {
@@ -107,13 +111,15 @@ public class DesignTest {
return out.toString(UTF8_CHARSET.name());
}
- private void setCp1251Charset() throws NoSuchFieldException,
- SecurityException, IllegalArgumentException, IllegalAccessException {
+ private void setCp1251Charset()
+ throws NoSuchFieldException, SecurityException,
+ IllegalArgumentException, IllegalAccessException {
setCharset(CP1251_CHARSET);
}
- private void setUtf8Charset() throws NoSuchFieldException,
- SecurityException, IllegalArgumentException, IllegalAccessException {
+ private void setUtf8Charset()
+ throws NoSuchFieldException, SecurityException,
+ IllegalArgumentException, IllegalAccessException {
setCharset(UTF8_CHARSET);
}