插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
894 B

5 years ago
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);
}
}