| 1 19 20 package gui.propertyeditors; 21 22 import org.netbeans.junit.NbTestSuite; 23 24 25 30 public class PropertyType_Type extends PropertyEditorsTest { 31 32 public String propertyName_L; 33 public String propertyValue_L; 34 public String propertyValueExpectation_L; 35 36 public boolean waitDialog = false; 37 38 39 public PropertyType_Type(String testName) { 40 super(testName); 41 } 42 43 44 public void setUp(){ 45 propertyName_L = "property Type"; 46 super.setUp(); 47 } 48 49 public static NbTestSuite suite() { 50 NbTestSuite suite = new NbTestSuite(); 51 suite.addTest(new PropertyType_Type("testByCombo")); 52 suite.addTest(new PropertyType_Type("testByInPlace")); 53 suite.addTest(new PropertyType_Type("testByInPlaceInvalid")); 54 return suite; 55 } 56 57 public void testByCombo(){ 58 propertyValue_L = "int"; 59 propertyValueExpectation_L = propertyValue_L; 60 waitDialog = false; 61 setByCombo(propertyName_L, propertyValue_L, true); 62 } 63 64 public void testByInPlace(){ 65 propertyValue_L = "Integer"; 66 propertyValueExpectation_L = propertyValue_L; 67 waitDialog = false; 68 setByInPlace(propertyName_L, propertyValue_L, true); 69 } 70 71 public void testByInPlaceInvalid(){ 72 propertyValue_L = "Integer.class"; 73 propertyValueExpectation_L = propertyValue_L; 74 waitDialog = true; 75 setByInPlace(propertyName_L, propertyValue_L, false); 76 } 77 78 79 public void setCustomizerValue() { 80 } 81 82 public void verifyPropertyValue(boolean expectation) { 83 verifyExpectationValue(propertyName_L,expectation, propertyValueExpectation_L, propertyValue_L, waitDialog); 84 } 85 86 87 90 public static void main(String [] args) { 91 junit.textui.TestRunner.run(suite()); 93 } 94 95 public void verifyCustomizerLayout() { 96 } 97 98 } 99 | Popular Tags |