forked from fanruan/finekit
zed
4 years ago
8 changed files with 293 additions and 6 deletions
@ -0,0 +1,24 @@
|
||||
package com.fanruan.api.report; |
||||
|
||||
import com.fr.decision.webservice.v10.entry.ReportEntryService; |
||||
|
||||
/** |
||||
* @author Zed |
||||
* @version 10.0 |
||||
* Created by Zed on 2020/12/14 |
||||
* 在平台挂查看FR模板的工具类 |
||||
*/ |
||||
public class ReportEntryKit { |
||||
|
||||
/** |
||||
* 获取FR模板树 |
||||
* |
||||
* @param currentUserId 当前用户id |
||||
* @param keyword keyword |
||||
* @return 模板树 |
||||
* @throws Exception 异常 |
||||
*/ |
||||
public static Object getReportTemplateTree(String currentUserId, String keyword) throws Exception { |
||||
return ReportEntryService.getInstance().getReportTemplateTree(currentUserId, keyword); |
||||
} |
||||
} |
@ -0,0 +1,29 @@
|
||||
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); |
||||
} |
||||
} |
@ -0,0 +1,24 @@
|
||||
package com.fanruan.api.report; |
||||
|
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
import java.lang.reflect.Method; |
||||
|
||||
/** |
||||
* @author Zed |
||||
* @version 10.0 |
||||
* Created by Zed on 2020/12/15 |
||||
*/ |
||||
public class ReportEntryKitTest { |
||||
|
||||
@Test |
||||
public void getReportTemplateTree() throws Exception { |
||||
|
||||
Class<?> classBook = Class.forName("com.fanruan.api.report.ReportEntryKit"); |
||||
Assert.assertNotNull(classBook); |
||||
|
||||
Method method1 = classBook.getDeclaredMethod("getReportTemplateTree", String.class, String.class); |
||||
Assert.assertNotNull(method1); |
||||
} |
||||
} |
Loading…
Reference in new issue