Created
March 1, 2013 14:03
-
-
Save ariejan/5064848 to your computer and use it in GitHub Desktop.
Simple jUnit example for @avdgaag's TDD presentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Dog { | |
public String bark() { | |
return "WOOF!"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DogTest { | |
@Test | |
public void testAnnoyingBark() { | |
Dog dog = new Dog(); | |
assertEquals("WOOF!", dog.bark()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment