1 19 20 package org.netbeans.upgrade.systemoptions; 21 22 25 public class HttpServerSettingsTest extends BasicTestForImport { 26 public HttpServerSettingsTest(String testName) { 27 super(testName, "org-netbeans-modules-httpserver-HttpServerSettings.settings"); 28 } 29 30 public void testPreferencesNodePath() throws Exception { 31 assertPreferencesNodePath("/org/netbeans/modules/httpserver"); 32 } 33 34 public void testPropertyNames() throws Exception { 35 assertPropertyNames(new String [] { 36 "host", "showGrantAccess", "grantedAddresses", "port" 37 }); 38 } 39 40 public void testShowGrantAccess() throws Exception { 41 assertPropertyType("showGrantAccess", "java.lang.Boolean"); 42 assertProperty("showGrantAccess", "true"); 43 } 44 45 public void testHost() throws Exception { 46 assertProperty("host", "local"); 47 } 48 49 public void testGrantedAddresses() throws Exception { 50 assertProperty("grantedAddresses", "my.org,your.org"); 51 } 52 53 public void testPort() throws Exception { 54 assertProperty("port", "8083"); 55 } 56 57 } 58 | Popular Tags |