From: Per-Åke Minborg Date: Fri, 28 Oct 2016 17:09:50 +0000 (-0700) Subject: Flip parameters of .assertEquals() X-Git-Tag: 8.0.0.alpha7~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d9052749fe3334026b76e395882f56a63a060e7;p=vaadin-framework.git Flip parameters of .assertEquals() Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7225 --- 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 rpcInterfaceType) if the Rpc implementation implements more than one interface"); + Assert.assertEquals( + "Use registerRpc(T implementation, Class rpcInterfaceType) " + + "if the Rpc implementation implements more than one interface", + expected.getMessage()); } }