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 MailWizardTest extends TestCase { 30 private WizardDescriptor wiz; 31 private WizardDescriptor.Panel panels[] = new WizardDescriptor.Panel[2]; 32 33 public void testCreate() { 34 MailWizard s1 = new MailWizard().create(); 35 wiz = new WizardDescriptor(panels); 36 s1.initialize(wiz); 37 38 assertNotNull("ResourceConfigHelper was created ", s1.getResourceConfigHelper()); 39 40 45 s1.getResourceConfigHelper().getData().addProperty("foo", "bar"); 48 s1.getResourceConfigHelper().getData().setTargetFile("DSWizardTestFile"); 49 s1.getWizardInfo(); 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 public MailWizardTest(String testName) { 60 super(testName); 61 } 62 63 } 64 | Popular Tags |