/** * A simple class to demonstrate testing with JUnit. Note that it contains a * bug to show how JUnit reports failures. * * @author Paul Hatalsky * @version 14 September 2017 */ public class OddEven { private int value; public OddEven(int value) { this.value = value; } public boolean odd() { return this.value % 2 == 1; } public boolean even() { return !this.odd(); } }