1 19 20 package org.netbeans.modules.j2ee.sun.ide.sunresources.wizards; 21 22 import junit.framework.TestCase; 23 import org.openide.WizardDescriptor; 24 25 29 public class JMSWizardTest extends TestCase { 30 31 private WizardDescriptor wiz; 32 private WizardDescriptor.Panel panels[] = new WizardDescriptor.Panel[2]; 33 34 public void testCreate() { 35 JMSWizard s1 = new JMSWizard().create(); 36 41 wiz = new WizardDescriptor(panels); 44 s1.initialize(wiz); 45 46 assertNotNull("ResourceConfigHelper was created ", s1.getResourceConfigHelper()); 47 48 s1.getResourceConfigHelper().getData().addProperty("foo", "bar"); 49 s1.getResourceConfigHelper().getData().setTargetFile("JMSWizardTestFile"); 50 s1.getWizardInfo(); 51 s1.hasNext(); 52 s1.hasPrevious(); 53 s1.name(); 54 s1.nextPanel(); 55 s1.previousPanel(); 56 s1.setResourceConfigHelper(s1.getResourceConfigHelper()); 57 s1.instantiate(); 58 } 59 60 public JMSWizardTest(String testName) { 61 super(testName); 62 } 63 64 } 65 | Popular Tags |