junit mock objects
- by Codenotguru
i am new to junit so any help is appreciated.
I have a class called sysconfig.java for which i have written a
junit class file called TestSysconfig.java that tests some methods in the sysconfig.java.
The method that i am testing in sysconfig.java calls another class file "ethipmapping.java"
i have created a mock of this class file as Testethipmapping.java.
so my question is how do i tell sysconfig.java to call this mock object?