1 19 20 package org.netbeans.upgrade.systemoptions; 21 22 25 public class AntSettingsTest extends BasicTestForImport { 26 public AntSettingsTest(String testName) { 27 super(testName, "org-apache-tools-ant-module-AntSettings.settings"); 28 } 29 30 public void testPreferencesNodePath() throws Exception { 31 assertPreferencesNodePath("/org/apache/tools/ant/module"); 32 } 33 34 public void testPropertyNames() throws Exception { 35 assertPropertyNames(new String [] { 36 "saveAll", 37 "alwaysShowOutput", 38 "extraClasspath", 39 "antHome", 40 "verbosity", 41 "autoCloseTabs", 42 "properties", 43 }); 45 } 46 public void testSaveAll() throws Exception { 47 assertPropertyType("saveAll","java.lang.Boolean"); 48 assertProperty("saveAll","true"); 49 } 50 public void testAlwaysShowOutput() throws Exception { 51 assertPropertyType("alwaysShowOutput","java.lang.Boolean"); 52 assertProperty("alwaysShowOutput","false"); 53 } 54 public void testExtraClasspath() throws Exception { 55 assertPropertyType("extraClasspath","org.openide.execution.NbClassPath"); 56 assertProperty("extraClasspath","/home/jglick/NetBeansProjects:/home/jglick/NetBeansProjects/foo/dist/foo.jar"); 57 } 58 public void testAntHome() throws Exception { 59 assertPropertyType("antHome","java.io.File"); 60 assertProperty("antHome","/space/src/ant/dist"); 61 } 62 public void testVerbosity() throws Exception { 63 assertPropertyType("verbosity","java.lang.Integer"); 64 assertProperty("verbosity","4"); 65 } 66 public void testAutoCloseTabs() throws Exception { 67 assertPropertyType("autoCloseTabs","java.lang.Boolean"); 68 assertProperty("autoCloseTabs","true"); 69 } 70 public void testProperties() throws Exception { 71 assertPropertyType("properties", "java.util.HashMap"); 72 assertProperty("properties", "hello=kitty\nmuscular=midget"); 73 } 74 } 75 | Popular Tags |