1 19 20 package org.netbeans.modules.junit; 21 22 import org.openide.*; 23 import org.openide.nodes.*; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.openide.util.actions.CookieAction; 27 import org.openide.loaders.*; 28 import org.openide.src.*; 29 import org.openide.filesystems.*; 30 import org.openide.cookies.*; 31 import org.openide.execution.*; 32 import org.openide.debugger.*; 33 import org.openide.compiler.*; 34 import org.openide.compiler.Compiler; 35 import java.lang.reflect.*; 36 import java.util.*; 37 import java.io.*; 38 import junit.framework.*; 39 40 public class RunTestActionTest extends TestCase { 41 42 public RunTestActionTest(java.lang.String testName) { 43 super(testName); 44 } 45 46 public static void main(java.lang.String [] args) { 47 junit.textui.TestRunner.run(suite()); 48 } 49 50 public static Test suite() { 51 TestSuite suite = new TestSuite(RunTestActionTest.class); 52 53 return suite; 54 } 55 56 57 public void testGetName() { 58 System.out.println("testGetName"); 59 String name = TO.getName(); 60 assertTrue(null != name); 61 } 62 63 64 public void testGetHelpCtx() { 65 System.out.println("testGetHelpCtx"); 66 HelpCtx hc = TO.getHelpCtx(); 67 assertTrue(null != hc); 68 } 69 70 71 public void testCookieClasses() { 72 System.out.println("testCookieClasses"); 73 Class [] c = TO.cookieClasses(); 74 assertTrue(null != c); 75 } 76 77 78 public void testIconResource() { 79 System.out.println("testIconResource"); 80 String icon = TO.iconResource(); 81 assertTrue(null != icon); 82 } 83 84 85 public void testMode() { 86 System.out.println("testMode"); 87 TO.mode(); 88 } 89 90 91 public void testPerformAction() { 92 System.out.println("testPerformAction"); 93 94 fail("The test case is empty."); 96 } 97 98 99 protected CreateTestAction TO = null; 100 101 protected void setUp() { 102 if (null == TO) 103 TO = (CreateTestAction)CreateTestAction.findObject(CreateTestAction.class, true); 104 } 105 106 protected void tearDown() { 107 } 108 } 109 | Popular Tags |