aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-28 10:09:50 -0700
committerVaadin Code Review <review@vaadin.com>2016-11-04 14:54:00 +0000
commit6d9052749fe3334026b76e395882f56a63a060e7 (patch)
tree3ee112e6c7ba27c9e1e6a7ecdd77d198be603370 /server
parentb6b70f6b9dc3d00c71f6150d62d583698053f631 (diff)
downloadvaadin-framework-6d9052749fe3334026b76e395882f56a63a060e7.tar.gz
vaadin-framework-6d9052749fe3334026b76e395882f56a63a060e7.zip
Flip parameters of .assertEquals()
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7225
Diffstat (limited to 'server')
-rw-r--r--server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java5
-rw-r--r--server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java6
2 files changed, 6 insertions, 5 deletions
diff --git a/server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java b/server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java
index 8875cf3821..f7ab22a121 100644
--- a/server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java
+++ b/server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java
@@ -609,9 +609,8 @@ public class BinderBookOfVaadinTest {
BinderValidationStatus<?> status = binder.validate();
Assert.assertEquals(0, status.getFieldValidationErrors().size());
Assert.assertEquals(1, status.getBeanValidationErrors().size());
- Assert.assertEquals(
- status.getBeanValidationErrors().get(0).getErrorMessage(),
- message);
+ Assert.assertEquals(message,
+ status.getBeanValidationErrors().get(0).getErrorMessage());
Assert.assertEquals(message, formStatusLabel.getValue());
diff --git a/server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java b/server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java
index 2a4ef9bb29..d8c4be4c9e 100644
--- a/server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java
+++ b/server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java
@@ -45,8 +45,10 @@ public class AbstractClientConnectorTest {
mock.registerRpc(implementation);
Assert.fail("expected exception");
} catch (Exception expected) {
- Assert.assertEquals(expected.getMessage(),
- "Use registerRpc(T implementation, Class<T> rpcInterfaceType) if the Rpc implementation implements more than one interface");
+ Assert.assertEquals(
+ "Use registerRpc(T implementation, Class<T> rpcInterfaceType) "
+ + "if the Rpc implementation implements more than one interface",
+ expected.getMessage());
}
}