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