From bce1110b13480f8a7f6f300caa3b871a09b074ed Mon Sep 17 00:00:00 2001 From: ljacqu Date: Tue, 4 Dec 2018 19:48:46 +0100 Subject: [PATCH] Minor: check returned permission system type in permission handler test --- .../authme/permission/PermissionsManagerInitializationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/fr/xephi/authme/permission/PermissionsManagerInitializationTest.java b/src/test/java/fr/xephi/authme/permission/PermissionsManagerInitializationTest.java index d2cf51453..8efaa9540 100644 --- a/src/test/java/fr/xephi/authme/permission/PermissionsManagerInitializationTest.java +++ b/src/test/java/fr/xephi/authme/permission/PermissionsManagerInitializationTest.java @@ -38,6 +38,7 @@ import static fr.xephi.authme.permission.PermissionsSystemType.LUCK_PERMS; import static fr.xephi.authme.permission.PermissionsSystemType.PERMISSIONS_EX; import static fr.xephi.authme.permission.PermissionsSystemType.VAULT; import static fr.xephi.authme.permission.PermissionsSystemType.Z_PERMISSIONS; +import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.nullValue; import static org.junit.Assert.assertThat; @@ -89,6 +90,7 @@ public class PermissionsManagerInitializationTest { // then PermissionHandler handler = getHandlerFieldValue(); assertThat(handler, instanceOf(expectedHandlerType)); + assertThat(handler.getPermissionSystem(), equalTo(permissionsSystemType)); } @Test