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 →

HashTable vs HashMap

http://stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable There are several differences between HashMap and Hashtable in Java: Hashtable is synchronized, whereas HashMap is not. This […]

Read More →

Tag Cloud