资 源 简 介
MockByNode falciliates the Instantiation of mock objects by internal usage of reflections Proxy.newProxyInstance.
The underlying idea is that interface methods are implemented on the fly based on data specified in a xml data source.
For non-interface-types MockByNode allows the registration of type adapters.
The advantages of using MockByNode are:
- Its probably the simplest way of instatiating mock objects
- mock objects are created based on information in XMLs
- Just the values that really are accessed need to be specified