DbusConstants { public static String getAppName() { return System.getProperty(APP_NAME, UNKNOWN_APP_NAME); }  static String getAppName(); static void setAppName(String appName); static String getInstanceName(); static void setInstanceName(String instanceName); static String getEnvName(); static void setEnvName(String envName); static String getMachineName(); static void setMachineName(String machineName); static String getContainerName(); static void setContainerName(String containerName); static String getServiceIdentifier(String environment, String appName, String instance); static String getServiceIdentifier(); static final long NUM_NSECS_IN_MSEC; static final long NUM_NSECS_IN_SEC; static final long NUM_NSECS_IN_MIN; static final long NUM_MSECS_IN_SEC; static final String SERVER_INFO_HOSTPORT_HEADER_PARAM; static final String HOSTPORT_DELIMITER; static final String APP_NAME; static final String INSTANCE_NAME; static final String ENV_NAME; static final String MACHINE_NAME; static final String CONTAINER_NAME; static final String COMPOUND_KEY_DELIMITER; static final String COMPOUND_KEY_SEPARATOR; static final String UNKNOWN_ENV; static final String UNKNOWN_APP_NAME; static final String UNKNOWN_INSTANCE; static final String UNKNOWN_SERVICE_ID; static final String UNKNOWN_HOST; static final String DEFAULT_VAL; final static String GG_REPLICATION_BIT_SETTER_FIELD_NAME; final static String GG_REPLICATION_BIT_SETTER_VALUE; final static String ISO_8859_1; final static String XML_VERSION; final static int DONT_USE_METADATA_SCHEMA; final static int USE_LATEST_METADATA_SCHEMA; }
@Test public void testGetAppname() throws Exception { String appName = DbusConstants.getAppName(); Assert.assertEquals(appName,DbusConstants.DEFAULT_VAL); appName = "appNameToBeSetInIntegrationTest"; DbusConstants.setAppName(appName); String newAppName = DbusConstants.getAppName(); Assert.assertEquals(newAppName, appName); }