Slide 17
Slide 17 text
Step 3: ...and then make it fail again
@Test
public void testSqrtWith25 () {
//PREPARE
SomeObjectToTest object = new SomeObjectToTest() ;
//PERFORM
int result = object.sqrt( 25);
//CHECK
assertEquals(5, result);
//assertTrue(5 == result);
}
public class SomeObjectToTest {
public int sqrt(int value) {
return 0;
}
}