mocking a singleton class
***** http://blog.frankel.ch/two-different-mocking-approaches ***** http://fruzenshtein.com/junit-and-mockito/ ***** –> http://fruzenshtein.com/junit-and-easymock-cooperation/ http://www.jramoyo.com/2013/03/static-methods-and-unit-testing.html http://stackoverflow.com/questions/2302179/mocking-a-singleton-class A Singleton, by definition, has exactly one instance. Hence its […]
Read More →