package com.fanruan.api.decision; import org.junit.Assert; import org.junit.Test; import java.lang.reflect.Method; /** * @author Zed * @version 10.0 * Created by Zed on 2020/4/30 */ public class AuthorityKitTest { @Test public void setAuth() throws Exception { Class classBook = Class.forName("com.fanruan.api.decision.AuthorityKit"); Assert.assertNotNull(classBook); Method method1 = classBook.getDeclaredMethod("setCustomRoleAuth", String.class, int.class, String.class, int.class); Assert.assertNotNull(method1); Method method2 = classBook.getDeclaredMethod("setUserAuth", String.class, int.class, String.class, int.class); Assert.assertNotNull(method2); Method method3 = classBook.getDeclaredMethod("setDepAuth", String.class, int.class, String.class, int.class); Assert.assertNotNull(method3); } }