插件开发工具库,推荐依赖该工具库。
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.

26 lines
607 B

5 years ago
package com.fanruan.api.decision.user;
import org.junit.Assert;
import org.junit.Test;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Method;
/**
* @author Zed
* @version 10.0
* Created by Zed on 2020/4/30
*/
public class UserKitTest {
@Test
public void getCurrentUserId() throws Exception {
Class<?> classBook = Class.forName("com.fanruan.api.decision.user.UserKit");
Assert.assertNotNull(classBook);
Method method1 = classBook.getDeclaredMethod("getCurrentUserId", HttpServletRequest.class);
Assert.assertNotNull(method1);
}
}