01: package com.sun.addressbook.tests;
02:
03: import java.net.InetAddress;
04: import java.net.UnknownHostException;
05:
06: public class Configuration {
07: public static String namespace = "com.sun.addressbook.tests.";
08: public static String host = null;
09: public static String port = null;
10: public static String uwcContextURI = null;
11: public static String testLogin = null;
12: public static String testPasswd = null;
13: public static String proxyAdminUid = null;
14: public static String proxyAdminPassword = null;
15:
16: static {
17: String defaultHost = "localhost";
18: try {
19: defaultHost = InetAddress.getLocalHost()
20: .getCanonicalHostName();
21: } catch (UnknownHostException e) {
22: // ignore
23: }
24: host = System.getProperty(namespace + "host", defaultHost);
25: port = System.getProperty(namespace + "port", "80");
26: uwcContextURI = System.getProperty(namespace + "uwcContextURI",
27: "uwc");
28: testLogin = System.getProperty(namespace + "testLogin", "a");
29: testPasswd = System.getProperty(namespace + "testPasswd", "a");
30: proxyAdminUid = System.getProperty(namespace + "proxyAdminUid",
31: "admin");
32: proxyAdminPassword = System.getProperty(namespace
33: + "proxyAdminPassword", "netscape");
34: }
35: }
|