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