↧
Introducing MagicTest
If you’ve written enough JUnit 4 tests, then you should be familiar with code that looks like: public class FooTest { private Foo foo; @Before public void setUp() { foo = new Foo(); }...
View ArticleActiveTest – Instantiation, mocking, and injection for the lazy
David Saff wrote in on Introducing MagicTest, asking why not just instantiate the variable in-line (private Foo foo = new Foo();). Which brings me to the real reason for coming up with...
View Article