Browse Source
Merge in TC/finekit from ~ZED/finekit:master to master * commit '9cff6a3549d18f4f3f49ff7c798e2271af0781c7': DEC-15861 feat: Fr/Bi融合与独立部署V1pull/3/head
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