droolstestcase.java

来自「rule engine drools-2.0-beta-18」· Java 代码 · 共 55 行

JAVA
55
字号
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 + =
减小字号Ctrl + -
显示快捷键?