aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-18 09:27:03 +0300
committerArtur Signell <artur@vaadin.com>2016-08-18 09:27:03 +0300
commit6d54d78944f6c3278eed3bb5e7ee19687ee5714e (patch)
tree8142f622e644e98bb3f8d19a7021fd125f9fed40 /server/src/test/java/com/vaadin/ui/declarative/DesignTest.java
parent7b899665d07be33f86015f71695868c70bc5a589 (diff)
downloadvaadin-framework-6d54d78944f6c3278eed3bb5e7ee19687ee5714e.tar.gz
vaadin-framework-6d54d78944f6c3278eed3bb5e7ee19687ee5714e.zip
Format using Eclipse Neon
Change-Id: I33f1cc33969ff74a95b1b8cc0f2add589be5aae0
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);
}