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 PMFWizardTest extends TestCase { 30 private WizardDescriptor wiz; 31 private WizardDescriptor.Panel panels[] = new WizardDescriptor.Panel[3]; 32 33 public void testCreate() { 34 PMFWizard s1 = new PMFWizard().create(); 35 wiz = new WizardDescriptor(panels); 36 s1.initialize(wiz); 37 38 assertNotNull("ResourceConfigHelper was created ", s1.getResourceConfigHelper()); 39 44 s1.getResourceConfigHelper().getData().addProperty("foo", "bar"); 47 s1.getResourceConfigHelper().getData().setTargetFile("PMFWizardTestFile"); 48 s1.getResourceConfigHelper().getData().addProperty("foo", "bar"); 49 s1.getWizardInfo("foo"); 50 s1.hasNext(); 51 s1.hasPrevious(); 52 s1.name(); 53 s1.nextPanel(); 54 s1.previousPanel(); 55 s1.setResourceConfigHelper(s1.getResourceConfigHelper()); 56 s1.instantiate(); 57 58 } 59 60 public PMFWizardTest(String testName) { 61 super(testName); 62 } 63 64 } 65 | Popular Tags |