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.
29 lines
737 B
29 lines
737 B
package com.fanruan.api.conf; |
|
|
|
import com.fr.config.Configuration; |
|
import org.junit.Assert; |
|
import org.junit.Test; |
|
|
|
import java.lang.reflect.Method; |
|
import java.util.Map; |
|
|
|
/** |
|
* @author Zed |
|
* @version 10.0 |
|
* Created by Zed on 2020/12/15 |
|
*/ |
|
public class ConfigurationKitTest { |
|
|
|
@Test |
|
public void update() throws Exception { |
|
|
|
Class<?> classBook = Class.forName("com.fanruan.api.conf.ConfigurationKit"); |
|
Assert.assertNotNull(classBook); |
|
|
|
Method method1 = classBook.getDeclaredMethod("getConfig", Configuration.class); |
|
Assert.assertNotNull(method1); |
|
|
|
Method method2 = classBook.getDeclaredMethod("setConfig", Configuration.class, Map.class); |
|
Assert.assertNotNull(method2); |
|
} |
|
}
|
|
|