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

22 lines
522 B

package com.fanruan.api.report.script;
import com.fr.js.JavaScriptImpl;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author richie
* @version 10.0
* Created by richie on 2019/11/12
*/
public class JavaScriptKitTest {
@Test
public void newSimpleJavaScript() {
String text = "function add(a, b) {return a + b};";
JavaScriptImpl script = new JavaScriptImpl(text);
Assert.assertEquals(script, JavaScriptKit.newSimpleJavaScript(text));
}
}