]> source.dussan.org Git - vaadin-framework.git/commitdiff
Flip parameters of .assertEquals()
authorPer-Åke Minborg <minborg@speedment.com>
Fri, 28 Oct 2016 17:09:50 +0000 (10:09 -0700)
committerVaadin Code Review <review@vaadin.com>
Fri, 4 Nov 2016 14:54:00 +0000 (14:54 +0000)
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7225

server/src/test/java/com/vaadin/data/BinderBookOfVaadinTest.java
server/src/test/java/com/vaadin/server/AbstractClientConnectorTest.java

index 8875cf38210c11eaca56e9dfabcfd683b972fd8a..f7ab22a1216b0de5af8055b11063a3e63a928843 100644 (file)
@@ -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());
 
index 2a4ef9bb2931c6baa9f2c674452ce6557b5a78ea..d8c4be4c9ed3333e79d90230ee4cbb9a029b4b19 100644 (file)
@@ -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());
         }
     }