1 19 20 package org.netbeans.upgrade.systemoptions; 21 22 25 public class FormSettingsTest extends BasicTestForImport { 26 public FormSettingsTest(String testName) { 27 super(testName, "formsettings.settings"); 28 } 29 public void testPreferencesNodePath() throws Exception { 30 assertPreferencesNodePath("/org/netbeans/modules/form"); 31 } 32 public void testPropertyNames() throws Exception { 33 assertPropertyNames(new String [] { 34 "applyGridToPosition", 35 "applyGridToSize", 36 "connectionBorderColor", 37 "displayWritableOnly", 38 "dragBorderColor", 39 "editorSearchPath", 40 "eventVariableName", 41 "foldGeneratedCode", 42 "formDesignerBackgroundColor", 43 "formDesignerBorderColor", 44 "generateMnemonicsCode", 45 "gridX", 46 "gridY", 47 "guidingLineColor", 48 "listenerGenerationStyle", 49 "registeredEditors", 50 "selectionBorderColor", 51 "selectionBorderSize", 52 "toolBarPalette", 53 "useIndentEngine", 54 "variablesLocal", 55 "variablesModifier" 56 }); 57 } 58 59 public void testApplyGridToSize() throws Exception { assertProperty("applyGridToSize","true"); } 60 public void testDisplayWritableOnly() throws Exception { assertProperty("displayWritableOnly","true"); } 61 public void testEventVariableName() throws Exception { assertProperty("eventVariableName","evt"); } 62 public void testFoldGeneratedCode() throws Exception { assertProperty("foldGeneratedCode","true"); } 63 public void testGenerateMnemonicsCode() throws Exception { assertProperty("generateMnemonicsCode","false"); } 64 public void testGridX() throws Exception { assertProperty("gridX","10"); } 65 public void testGridY() throws Exception { assertProperty("gridY","10"); } 66 public void testListenerGenerationStyle() throws Exception { assertProperty("listenerGenerationStyle","0"); } 67 public void testSelectionBorderSize() throws Exception { assertProperty("selectionBorderSize","1"); } 68 public void testToolBarPalette() throws Exception { assertProperty("toolBarPalette","true"); } 69 public void testUseIndentEngine() throws Exception { assertProperty("useIndentEngine","false"); } 70 public void testVariablesLocal() throws Exception { assertProperty("variablesLocal","true"); } 71 public void testVariablesModifie() throws Exception { assertProperty("variablesModifier","0"); } 72 public void testApplyGridToPosition() throws Exception { assertProperty("applyGridToPosition","true"); } 73 74 public void testEditorSearchPath() throws Exception { assertProperty("editorSearchPath","org.netbeans.modules.form.editors2"); } 75 public void testRegisteredEditors() throws Exception { assertProperty("registeredEditors","aaaaaaa | bbbbbbbbb"); } 76 77 public void testConnectionBorderColor() throws Exception { assertProperty("connectionBorderColor","-65536"); } 78 public void testDragBorderColor() throws Exception { assertProperty("dragBorderColor","-8355712"); } 79 public void testFormDesignerBackgroundColor() throws Exception { assertProperty("formDesignerBackgroundColor","-1"); } 80 public void testFormDesignerBorderColor() throws Exception { assertProperty("formDesignerBorderColor","-2039553"); } 81 public void testGuidingLineColor() throws Exception { assertProperty("guidingLineColor","-7361596"); } 82 public void testSelectionBorderColor() throws Exception { assertProperty("selectionBorderColor","-23552"); } 83 } 84 | Popular Tags |