📄 droolstestcase.java
字号:
package org.drools;import java.util.Arrays;import java.util.Collection;import junit.framework.TestCase;public class DroolsTestCase extends TestCase{ public DroolsTestCase() { super( ); } public DroolsTestCase(String name) { super( name ); } public void assertLength(int len, Object[] array) { assertEquals( Arrays.asList( array ) + " does not have length of " + len, len, array.length ); } public void assertLength(int len, Collection collection) { assertEquals( collection + " does not have length of " + len, len, collection.size( ) ); } public void assertContains(Object obj, Object[] array) { for ( int i = 0; i < array.length; ++i ) { if ( array[i] == obj ) { return; } } fail( Arrays.asList( array ) + " does not contain " + obj ); } public void assertContains(Object obj, Collection collection) { assertTrue( collection + " does not contain " + obj, collection.contains( obj ) ); } public void testDummy() throws Exception { // do nothing }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -