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