Skip to content

Commit 5b51314

Browse files
committed
working on DeepDive08
1 parent 942ba81 commit 5b51314

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/main/java/org/teachingkidsprogramming/recipes/completed/section08events/DeepDive08Events.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.teachingkidsprogramming.recipes.completed.section08events;
22

3+
import java.awt.Color;
4+
35
import org.junit.Assert;
46
import org.junit.Test;
57
import 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
}

0 commit comments

Comments
 (0)