Quantcast
Channel: Alistair Israel » unit testing
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

ActiveTest – 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
Browsing latest articles
Browse All 2 View Live




Latest Images