junit mock objects
Posted
by Codenotguru
on Stack Overflow
See other posts from Stack Overflow
or by Codenotguru
Published on 2010-06-08T17:30:16Z
Indexed on
2010/06/13
17:12 UTC
Read the original article
Hit count: 315
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?
© Stack Overflow or respective owner