package org.teachingkidsprogramming.recipes.completed.section09final; import org.junit.Test; import org.teachingextensions.approvals.lite.Approvals; import org.teachingextensions.logo.Tortoise; //--------------------This recipe is in progress-------------------------------// public class RectangleKataTDD { // Draw a rectangle // HINT: Write each step in English FIRST, then translate to Java one line at a time // TIP: Be sure to run after each line of Java to make sure it works as expected // Write tests using the Approvals object via the TDD style shown below (using the 'Golden Master paradigm') // TIP: Fix this test to make it pass to get started // NOTE: Due to the way the window renders, you must run each test INDIVIDUALLY @Test public void testShowsTheTortoise() throws Exception { Tortoise.show(); // Must be a path to actual image String bufferedImage = "showTortoise.png"; Approvals.verify(bufferedImage); } @Test public void testMovesTheTortoise50() throws Exception { //Set up Tortoise.show(); Tortoise.move(50); //Verify String bufferedImage1 = " "; Approvals.verify(bufferedImage1); } @Test public void testTurnsTheTortoise90() { //Set up Tortoise.show(); Tortoise.turn(90); //Verify } @Test public void testDrawsFourSides() { //Set up Tortoise.show(); //Tortoise.drawSide(); //Verify } }