1   // $Id$
2   // [JMP, 04.06.2004] created this file.
3   package com.pnpconsult.zeiterfassung.tags;
4   
5   import junit.framework.TestCase;
6   
7   /***
8    * @author <a href="mailto:powerpete@users.sf.net">Moritz Petersen</a>
9    * @version $Id$
10   */
11  public class InstanceOfTagTest extends TestCase
12  {
13      public InstanceOfTagTest(String arg0)
14      {
15          super(arg0);
16      }
17  
18      public void testIsInstanceOf()
19      {
20          assertInstanceOf("foo bar", String.class.getName());
21          assertInstanceOf("foo bar", Comparable.class.getName());
22          assertInstanceOf("foo bar", Object.class.getName());
23      }
24  
25      private void assertInstanceOf(Object obj, String className)
26      {
27          assertTrue(InstanceOfTag.isInstanceOf(obj, className));
28      }
29  }