1 19 20 package gui.propertyeditors; 21 22 import org.netbeans.junit.NbTestSuite; 23 24 29 public class PropertyType_BooleanO extends PropertyEditorsTest { 30 31 public String propertyName_L; 32 public String propertyValue_L; 33 34 35 public PropertyType_BooleanO(String testName) { 36 super(testName); 37 } 38 39 40 public void setUp(){ 41 propertyName_L = "Boolean"; 42 super.setUp(); 43 } 44 45 public static NbTestSuite suite() { 46 NbTestSuite suite = new NbTestSuite(); 47 suite.addTest(new PropertyType_BooleanO("testByComboTrue")); 48 suite.addTest(new PropertyType_BooleanO("testByComboFalse")); 49 return suite; 50 } 51 52 public void testByComboFalse(){ 53 propertyValue_L = Boolean.FALSE.toString(); 54 setByCombo(propertyName_L, propertyValue_L, true); 55 } 56 57 public void testByComboTrue(){ 58 propertyValue_L = Boolean.TRUE.toString(); 59 setByCombo(propertyName_L, propertyValue_L, true); 60 } 61 62 public void verifyPropertyValue(boolean expectation) { 63 verifyExpectationValue(propertyName_L,expectation, propertyValue_L, propertyValue_L, false); 64 } 65 66 public void setCustomizerValue(){} 67 public void verifyCustomizerLayout(){} 68 69 72 public static void main(String [] args) { 73 junit.textui.TestRunner.run(suite()); 75 } 76 } 77 | Popular Tags |