Unit Test Framework : Working with Unit Test Framework : Getting Familiar : 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.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback