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

📄 durationtest.java

📁 drools 一个开放源码的规则引擎
💻 JAVA
字号:
/*
 * Created on 20/08/2005
 */
package org.drools.decisiontable.model;

import junit.framework.TestCase;

public class DurationTest extends TestCase
{

    /**
     * Test basic rendering and parsing of arguments
     */
    public void testDurationRender() {
        Duration duration = new Duration();
        duration.setSnippet("H2,M30,S30");
        String res = duration.toXML();        
        assertTrue(res.indexOf("duration hours=\"2\" minutes=\"30\" seconds=\"30\"") > 0);

        duration.setSnippet("M30");
        res = duration.toXML();        
        assertTrue(res.indexOf("duration minutes=\"30\"") > 0);
    }
    
}

⌨️ 快捷键说明

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