1 19 20 package org.netbeans.jellytools.modules.junit.nodes; 21 22 27 28 import org.netbeans.jellytools.actions.*; 29 import org.netbeans.jellytools.modules.junit.actions.*; 30 import org.netbeans.jellytools.nodes.Node; 31 import javax.swing.tree.TreePath ; 32 import java.awt.event.KeyEvent ; 33 import org.netbeans.jemmy.operators.JTreeOperator; 34 35 37 public class JUnitNode extends Node { 38 39 private static final Action createTestsAction = new CreateTestsAction(); 40 private static final Action executeTestAction = new ExecuteTestAction(); 41 private static final Action openTestAction = new OpenTestAction(); 42 private static final Action propertiesAction = new PropertiesAction(); 43 44 47 public JUnitNode(JTreeOperator tree, String treePath) { 48 super(tree, treePath); 49 } 50 51 54 public JUnitNode(JTreeOperator tree, TreePath treePath) { 55 super(tree, treePath); 56 } 57 58 61 public JUnitNode(Node parent, String treePath) { 62 super(parent, treePath); 63 } 64 65 66 public void verifyPopup() { 67 verifyPopup(new Action[]{ 68 createTestsAction, 69 executeTestAction, 70 openTestAction, 71 propertiesAction 72 }); 73 } 74 75 76 public void createTests() { 77 createTestsAction.perform(this); 78 } 79 80 81 public void executeTest() { 82 executeTestAction.perform(this); 83 } 84 85 86 public void openTest() { 87 openTestAction.perform(this); 88 } 89 90 91 public void properties() { 92 propertiesAction.perform(this); 93 } 94 } 95 | Popular Tags |