01: package com.reeltwo.jumble.util;
02:
03: import junit.framework.Test;
04: import junit.framework.TestCase;
05: import junit.framework.TestSuite;
06:
07: /**
08: * Tests the corresponding class.
09: *
10: * @author Tin Pavlinic
11: * @version $Revision: 500 $
12: */
13: public class JumbleUtilsTest extends TestCase {
14: public void testIsTestClass() {
15: assertTrue(JumbleUtils.isTestClass(getClass()));
16: assertFalse(JumbleUtils.isTestClass(String.class));
17: }
18:
19: public static Test suite() {
20: return new TestSuite(JumbleUtilsTest.class);
21: }
22:
23: public static void main(String[] args) {
24: junit.textui.TestRunner.run(suite());
25: }
26: }
|