Designer 10.5 | webMethods Unit Test Framework Help | Unit Test Framework | Terms and Concepts | Factory Mock
 
Factory Mock
A factory mock is used when a call to a service produce multiple different outputs based on the provided input. A factory mock is implemented as a Java class. Any call to the class defined in a factory mock is intercepted and the input is passed to the factory which evaluates the input and returns the appropriate results. While both the factory mock and the service mock options provide dynamic output simulation, the factory mock does not require an extra test service to be created on the server and relies on a lightweight java implementation.