1 19 20 package gui.propertyeditors; 21 22 import org.netbeans.junit.NbTestSuite; 23 24 29 public class PropertyType_double 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 public PropertyType_double(String testName) { 39 super(testName); 40 } 41 42 43 public void setUp(){ 44 propertyName_L = "double"; 45 super.setUp(); 46 } 47 48 public static NbTestSuite suite() { 49 NbTestSuite suite = new NbTestSuite(); 50 suite.addTest(new PropertyType_double("testByInPlace")); 51 suite.addTest(new PropertyType_double("testByInPlaceInvalid")); 52 return suite; 53 } 54 55 public void testByInPlace(){ 56 propertyValue_L = "-123456789.123456789123456789"; 57 propertyValueExpectation_L = "-1.2345678912345679E8"; 58 waitDialog = false; 59 setByInPlace(propertyName_L, propertyValue_L, true); 60 } 61 62 public void testByInPlaceInvalid(){ 63 propertyValue_L = "1xxxx"; 64 propertyValueExpectation_L = propertyValue_L; 65 waitDialog = true; 66 setByInPlace(propertyName_L, propertyValue_L, false); 67 } 68 69 public void verifyPropertyValue(boolean expectation) { 70 verifyExpectationValue(propertyName_L,expectation, propertyValueExpectation_L, propertyValue_L, waitDialog); 71 } 72 73 public void setCustomizerValue(){} 74 public void verifyCustomizerLayout(){} 75 76 79 public static void main(String [] args) { 80 junit.textui.TestRunner.run(suite()); 82 } 83 } 84 | Popular Tags |