📄 durationtest.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 + -