forked from fanruan/finekit
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.
30 lines
894 B
30 lines
894 B
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); |
|
} |
|
}
|
|
|