mockmaker
Class RealConfiguration

java.lang.Object
  extended bymockmaker.RealConfiguration
All Implemented Interfaces:
Configuration

public class RealConfiguration
extends java.lang.Object
implements Configuration


Field Summary
static java.lang.String DEFAULT_CONFIGURATION_FILENAME
           
private  java.util.Properties myProperties
           
 
Constructor Summary
RealConfiguration(java.lang.String configFileName)
           
 
Method Summary
 java.lang.String addExpectedValuesFormat()
           
 java.lang.String classNameFormat()
           
private  boolean isTrue(java.lang.String value)
           
private  boolean isTrueProperty(java.lang.String propertyName)
           
 boolean keepUsingLastReturnValue()
           
 java.lang.String packageNameFormat()
           
 void set(java.lang.String propertyName, java.lang.String newValue)
           
 java.lang.String setActualReturnExceptionFormat()
           
 java.lang.String setActualReturnValueFormat()
           
 java.lang.String setExpectedCallsFormat()
           
private  java.lang.String stringProperty(java.lang.String propertyName, java.lang.String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIGURATION_FILENAME

public static final java.lang.String DEFAULT_CONFIGURATION_FILENAME
See Also:
Constant Field Values

myProperties

private java.util.Properties myProperties
Constructor Detail

RealConfiguration

public RealConfiguration(java.lang.String configFileName)
Method Detail

addExpectedValuesFormat

public java.lang.String addExpectedValuesFormat()
Specified by:
addExpectedValuesFormat in interface Configuration

isTrue

private boolean isTrue(java.lang.String value)

isTrueProperty

private boolean isTrueProperty(java.lang.String propertyName)

keepUsingLastReturnValue

public boolean keepUsingLastReturnValue()
Specified by:
keepUsingLastReturnValue in interface Configuration

setActualReturnValueFormat

public java.lang.String setActualReturnValueFormat()
Specified by:
setActualReturnValueFormat in interface Configuration

setExpectedCallsFormat

public java.lang.String setExpectedCallsFormat()
Specified by:
setExpectedCallsFormat in interface Configuration

stringProperty

private java.lang.String stringProperty(java.lang.String propertyName,
                                        java.lang.String defaultValue)

setActualReturnExceptionFormat

public java.lang.String setActualReturnExceptionFormat()
Specified by:
setActualReturnExceptionFormat in interface Configuration

packageNameFormat

public java.lang.String packageNameFormat()
Specified by:
packageNameFormat in interface Configuration

classNameFormat

public java.lang.String classNameFormat()
Specified by:
classNameFormat in interface Configuration

set

public void set(java.lang.String propertyName,
                java.lang.String newValue)
Specified by:
set in interface Configuration