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 java.lang.reflect.*; 32 import java.util.*; 33 import java.io.*; 34 import junit.framework.*; 35 36 public class OpenTestActionTest extends TestCase { 37 38 public OpenTestActionTest(java.lang.String testName) { 39 super(testName); 40 } 41 42 public static void main(java.lang.String [] args) { 43 junit.textui.TestRunner.run(suite()); 44 } 45 46 public static Test suite() { 47 TestSuite suite = new TestSuite(OpenTestActionTest.class); 48 49 return suite; 50 } 51 52 53 public void testCookieClasses() { 54 System.out.println("testCookieClasses"); 55 Class [] c = TO.cookieClasses(); 56 assertTrue(null != c); 57 } 58 59 60 public void testMode() { 61 System.out.println("testMode"); 62 TO.mode(); 63 } 64 65 66 public void testGetName() { 67 System.out.println("testGetName"); 68 String name = TO.getName(); 69 assertTrue(null != name); 70 } 71 72 73 public void testIconResource() { 74 System.out.println("testIconResource"); 75 String icon = TO.iconResource(); 76 assertTrue(null != icon); 77 } 78 79 80 public void testGetHelpCtx() { 81 System.out.println("testGetHelpCtx"); 82 HelpCtx hc = TO.getHelpCtx(); 83 assertTrue(null != hc); 84 } 85 86 87 public void testPerformAction() { 88 System.out.println("testPerformAction"); 89 90 fail("The test case is empty."); 92 } 93 94 95 protected CreateTestAction TO = null; 96 97 protected void setUp() { 98 if (null == TO) 99 TO = (CreateTestAction)CreateTestAction.findObject(CreateTestAction.class, true); 100 } 101 102 protected void tearDown() { 103 } 104 } 105 | Popular Tags |