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