File tree Expand file tree Collapse file tree
src/main/java/org/teachingkidsprogramming/recipes/completed/section08events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .teachingkidsprogramming .recipes .completed .section08events ;
22
3+ import java .awt .Color ;
4+
35import org .junit .Assert ;
46import org .junit .Test ;
57import org .teachingextensions .logo .utils .ColorUtils .PenColors ;
@@ -32,10 +34,10 @@ public void twoCircles() throws Exception
3234 public void twoCirclesAgain () throws Exception
3335 {
3436 Circle c1 = new Circle (20 , PenColors .Blues .Blue );
35- Circle c2 = new Circle (20 , PenColors . Blues . Blue );
36- boolean result = c2 .equals (c1 );
37- // shows use of different type of assert statement
38- Assert .assertNotSame ( ____ , result );
37+ Circle c2 = new Circle (20 , ________ );
38+ boolean result = c1 .equals (c2 );
39+ // shows use of different type of properties
40+ Assert .assertEquals ( c2 , result );
3941 }
4042 @ Test
4143 public void twoCirclesYetAgain () throws Exception
@@ -94,4 +96,5 @@ public String ___()
9496 {
9597 return ___ ;
9698 }
99+ private Color ________ = PenColors .Reds .Red ;
97100}
You can’t perform that action at this time.
0 commit comments