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()
           
 
Method Summary
 String getProperty(String name)
           
 String getProperty(String name, String defaultValue)
           
 Boolean getPropertyAsBoolean(String name, boolean defaultValue)
           
 Integer getPropertyAsInteger(String name, Integer 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()
Method Detail

propertySetIsEmpty

public boolean propertySetIsEmpty()

getValue

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

getValue

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

getPropertyAsInteger

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

getPropertyAsBoolean

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

getProperty

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

getProperty

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

setProperty

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

setValue

public void setValue(String name,
                     String value)


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