From 3fe2f0b6a8ae4c7b9b075b4141447d8095bc1382 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Wed, 4 May 2016 18:40:06 +0200 Subject: [PATCH] Add missing test matcher - Mock verifications need matchers on all parameters, or on none. Test fails otherwise --- .../authme/command/executable/register/RegisterCommandTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/fr/xephi/authme/command/executable/register/RegisterCommandTest.java b/src/test/java/fr/xephi/authme/command/executable/register/RegisterCommandTest.java index e5faa450f..fecc3fccf 100644 --- a/src/test/java/fr/xephi/authme/command/executable/register/RegisterCommandTest.java +++ b/src/test/java/fr/xephi/authme/command/executable/register/RegisterCommandTest.java @@ -204,7 +204,7 @@ public class RegisterCommandTest { // then verify(commandService).validateEmail(playerMail); - verify(management).performRegister(eq(sender), argThat(stringWithLength(passLength)), eq(playerMail), true); + verify(management).performRegister(eq(sender), argThat(stringWithLength(passLength)), eq(playerMail), eq(true)); } @Test