Archive for November, 2010

One-liners in Java – maybe better support in Java 7

November 28th, 2010 by Magnus Ekstrand

For sure, Java is a great language. I wrote my first Java app 1996 and have had lots of fun with it ever since. But for the past 4-5 years my interest in dynamic programming languages as Python, Groovy and Clojure has increased more and more. When working with other languages you discover a bunch [...]

Posted in Java, Java 7 | 1 Comment »

Difference between Stubs ‘n’ Mocks

November 12th, 2010 by Magnus Ekstrand

As Martin Fowler states in his article Mocks Aren’t Stubs, mocks are often confused with stubs (or vice versa). It is understandable but there are some distinctions. A common interpretation is that stubs are static classes and mocks are dynamically generated classes by using some mocking framework. But the real difference between them is in the [...]

Posted in Java, TDD | No Comments »