1 19 20 package org.netbeans.upgrade.systemoptions; 21 22 import junit.framework.*; 23 24 27 public class IDESettingsTest extends BasicTestForImport { 28 public IDESettingsTest(String testName) { 29 super(testName, "org-netbeans-core-IDESettings.settings"); 30 } 31 public void testPropertyNames() throws Exception { 32 assertPropertyNames(new String [] { 33 "IgnoredFiles", 34 "UIMode", 35 "WWWBrowser", 36 "confirmDelete", 37 "homePage", 38 "modulesSortMode", "proxyNonProxyHosts", 40 "proxyType", 41 "showFileExtensions", 42 "showToolTipsInIDE", 43 "useProxy", 44 "proxyHttpHost", 45 "proxyHttpPort" 46 }); 47 } 48 49 public void testPreferencesNodePath() throws Exception { 50 assertPreferencesNodePath("/org/netbeans/core"); 51 } 52 53 public void testIgnoredFiles() throws Exception { 54 assertProperty("IgnoredFiles","^(CVS|SCCS|vssver\\.scc|#.*#|%.*%|\\.(cvsignore|svn|DS_Store))$|^\\.[#_]|~$"); 56 } 57 58 public void testUIMode() throws Exception { 59 assertProperty("UIMode","2"); 61 } 62 63 public void testWWWBrowser() throws Exception { 64 assertProperty("WWWBrowser","SL[/Browsers/FirefoxBrowser"); 66 } 67 68 public void testConfirmDelete() throws Exception { 69 assertProperty("confirmDelete","true"); 71 } 72 public void testHomePage() throws Exception { 73 assertProperty("homePage","http://www.netbeans.org/"); 75 } 76 77 public void testProxyType() throws Exception { 78 assertProperty("proxyType","1"); 80 } 81 public void testShowFileExtensions() throws Exception { 82 assertProperty("showFileExtensions","false"); 84 } 85 86 public void testShowToolTipsInIDE() throws Exception { 87 assertProperty("showToolTipsInIDE","false"); 89 } 90 91 public void testUseProxy() throws Exception { 92 assertProperty("useProxy","false"); 94 } 95 96 public void testProxyHttpHost() throws Exception { 97 assertProperty("proxyHttpHost",""); 99 } 100 101 public void testProxyHttpPort() throws Exception { 102 assertProperty("proxyHttpPort",""); 104 } 105 106 public void testProxyNonProxyHosts() throws Exception { 107 assertProperty("proxyNonProxyHosts","localhost|127.0.0.1"); 109 } 110 } 111 | Popular Tags |