org.mockcentral.server
Class ResultBuilder

java.lang.Object
  extended by org.mockcentral.server.ResultBuilder

public class ResultBuilder
extends java.lang.Object

A class that builds an object that will be the expected result for a Mock Object method expectation from the values stored in a SignaturePartBean instance.

The "add" and "set" methods defined in this class are invoked by the org.apache.commons.digester.Digester when the configuration file is parsed, and should not be called by clients.

Author:
David Hutchinson
See Also:
SignaturepartBean

Constructor Summary
ResultBuilder()
          Creates a new instance.
 
Method Summary
static java.lang.Object buildResult(SignaturePartBean bean)
          Creates and returns the expected result Object for a Mock Object method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultBuilder

public ResultBuilder()
Creates a new instance.

Method Detail

buildResult

public static java.lang.Object buildResult(SignaturePartBean bean)
                                    throws UnknownProxyException,
                                           MockCentralServerException
Creates and returns the expected result Object for a Mock Object method.

Parameters:
bean - the SignaturePartBean containing the data for the expected result.
Returns:
the expected result Object for a Mock Object method.
Throws:
UnknownProxyException - if the expected result was designated as a Mock Object Proxy and the Proxy was not found.
MockCentralServerException - if the expected result could not be constructed for another reason.
See Also:
SignaturepartBean