com.atlassian.confluence.it
Class PropertiesManager

java.lang.Object
  extended by com.atlassian.confluence.it.PropertiesManager

public class PropertiesManager
extends java.lang.Object

Provides variable properties for acceptance tests. Properties are loaded from system properties and interpolated so property values of http://${server.name}:{server.port}/${server.contextPath} will be processed as you would expect.


Constructor Summary
PropertiesManager(java.util.Properties... properties)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllPropertiesWithPrefix(java.lang.String prefix)
           
 java.lang.String getPropertyValue(java.lang.String k)
           
 java.lang.String getPropertyValue(java.lang.String k, java.lang.String defaultValue)
           
 int getTestPropertyAsInt(java.lang.String propName)
           
 int getTestPropertyAsInt(java.lang.String propName, int defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesManager

public PropertiesManager(java.util.Properties... properties)
Method Detail

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String k,
                                         java.lang.String defaultValue)

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String k)

getTestPropertyAsInt

public int getTestPropertyAsInt(java.lang.String propName)

getTestPropertyAsInt

public int getTestPropertyAsInt(java.lang.String propName,
                                int defaultValue)

getAllPropertiesWithPrefix

public java.util.Map<java.lang.String,java.lang.String> getAllPropertiesWithPrefix(java.lang.String prefix)


Copyright © 2003-2014 Atlassian. All Rights Reserved.