package nl.tudelft.simulation.language.reflection; import junit.framework.TestCase; /** * The JUNIT Test for the ClassUtilTest. *

* (c) copyright 2002-2005 Delft University of Technology , the * Netherlands. *

* See for project information www.simulation.tudelft.nl/language
* License of use: Lesser General Public License (LGPL) , no * warranty * @author Peter Jacobs * @version 1.2 Sep 28, 2004 * @since 1.5 */ public class ClassUtilTest extends TestCase { /** * constructs a new ClassUtilTest. */ public ClassUtilTest() { this("test"); } /** * constructs a new ClassUtilTest. * @param arg0 */ public ClassUtilTest(String arg0) { super(arg0); } /** * tests the ClassUtil */ public void test() { // the getClass method TestCase.assertEquals(ClassUtil.getClass(null).length, 0); TestCase.assertEquals(ClassUtil.getClass(new Object[]{"Peter"})[0], String.class); } }