From 6d9052749fe3334026b76e395882f56a63a060e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Per-=C3=85ke=20Minborg?= Date: Fri, 28 Oct 2016 10:09:50 -0700 Subject: [PATCH] Flip parameters of .assertEquals() Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7225 --- .../test/java/com/vaadin/data/BinderBookOfVaadinTest.java | 5 ++--- .../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 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()); } } -- 2.39.5