1 19 20 package org.netbeans.spi.project.ui.support; 21 import junit.framework.*; 22 import javax.swing.Action ; 23 import org.netbeans.modules.project.uiapi.Utilities; 24 25 29 public class CommonProjectActionsTest extends TestCase { 30 31 public CommonProjectActionsTest(String testName) { 32 super(testName); 33 } 34 35 36 39 public void testNewProjectAction() { 40 Action client1 = CommonProjectActions.newProjectAction(); 41 Object existingSources = new Object (); 42 client1.putValue(CommonProjectActions.EXISTING_SOURCES_FOLDER, existingSources); 43 Action client2 = CommonProjectActions.newProjectAction(); 44 Object o = client2.getValue(CommonProjectActions.EXISTING_SOURCES_FOLDER); 45 assertTrue(o != existingSources); 46 } 47 48 } 49 | Popular Tags |