⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 groovysemantictest.java

📁 rule engine drools-2.0-beta-18
💻 JAVA
字号:
package org.drools.semantics.groovy;import org.drools.smf.SMFTestFrameWork;import java.util.HashSet;import java.util.Set;/** * Extends SMFTestFrameWork specifying the groovy Semantic Module. The * SMFTestFramework base class then loads the groovy test data files, extracts * the tests for conditions and consequences and executes them */public class GroovySemanticTest extends SMFTestFrameWork{    public GroovySemanticTest(String name)    {        super( name );    }    public void setUp() throws Exception    {        Set imports = new HashSet();        imports.add(new GroovyImportEntry("java.math.*"));        imports.add(new GroovyImportEntry("org.drools.smf.SMFTestFrameWork.Cheese"));        super.setUp( "groovy", imports );    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -