diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java | 5 | ||||
-rw-r--r-- | server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java | 6 |
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()); } } |