net.thucydides.core.util
Class MockEnvironmentVariables

Package class diagram package MockEnvironmentVariables
java.lang.Object
  extended by net.thucydides.core.util.MockEnvironmentVariables
All Implemented Interfaces:
EnvironmentVariables

public class MockEnvironmentVariables
extends Object
implements EnvironmentVariables


Constructor Summary
  MockEnvironmentVariables()
           
protected MockEnvironmentVariables(Properties properties)
           
 
Method Summary
 void clearProperty(String name)
           
static EnvironmentVariables fromSystemEnvironment()
           
 String getProperty(Enum<?> property)
           
 String getProperty(Enum<?> property, String defaultValue)
           
 String getProperty(String name)
           
 String getProperty(String name, String defaultValue)
           
 Boolean getPropertyAsBoolean(Enum<?> property, boolean defaultValue)
           
 Boolean getPropertyAsBoolean(String name, boolean defaultValue)
           
 Integer getPropertyAsInteger(Enum<?> property, Integer defaultValue)
           
 Integer getPropertyAsInteger(String name, Integer defaultValue)
           
 String getValue(Enum<?> property)
           
 String getValue(Enum<?> property, String defaultValue)
           
 String getValue(String name)
           
 String getValue(String name, String defaultValue)
           
 boolean propertySetIsEmpty()
           
 void setProperty(String name, String value)
           
 void setValue(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockEnvironmentVariables

public MockEnvironmentVariables()

MockEnvironmentVariables

protected MockEnvironmentVariables(Properties properties)
Method Detail

fromSystemEnvironment

public static EnvironmentVariables fromSystemEnvironment()

propertySetIsEmpty

public boolean propertySetIsEmpty()

getValue

public String getValue(String name)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(Enum<?> property)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(String name,
                       String defaultValue)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(Enum<?> property,
                       String defaultValue)
Specified by:
getValue in interface EnvironmentVariables

getPropertyAsInteger

public Integer getPropertyAsInteger(String name,
                                    Integer defaultValue)
Specified by:
getPropertyAsInteger in interface EnvironmentVariables

getPropertyAsInteger

public Integer getPropertyAsInteger(Enum<?> property,
                                    Integer defaultValue)
Specified by:
getPropertyAsInteger in interface EnvironmentVariables

getPropertyAsBoolean

public Boolean getPropertyAsBoolean(String name,
                                    boolean defaultValue)
Specified by:
getPropertyAsBoolean in interface EnvironmentVariables

getPropertyAsBoolean

public Boolean getPropertyAsBoolean(Enum<?> property,
                                    boolean defaultValue)
Specified by:
getPropertyAsBoolean in interface EnvironmentVariables

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(Enum<?> property)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(String name,
                          String defaultValue)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(Enum<?> property,
                          String defaultValue)
Specified by:
getProperty in interface EnvironmentVariables

setProperty

public void setProperty(String name,
                        String value)
Specified by:
setProperty in interface EnvironmentVariables

clearProperty

public void clearProperty(String name)
Specified by:
clearProperty in interface EnvironmentVariables

setValue

public void setValue(String name,
                     String value)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.