Skip to content

Commit e620c01

Browse files
committed
added DeepDive stubs w/Samantha
1 parent 54061ec commit e620c01

File tree

4 files changed

+184
-0
lines changed

4 files changed

+184
-0
lines changed
0 Bytes
Binary file not shown.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package org.teachingkidsprogramming.section06modelviewcontroller;
2+
3+
import java.awt.Color;
4+
import java.awt.Cursor;
5+
6+
import org.junit.Assert;
7+
import org.junit.Test;
8+
import org.teachingextensions.logo.Tortoise;
9+
10+
// This deepdive is in progress!
11+
//
12+
public class DeepDive06ModelViewController
13+
{
14+
// How to do deep dive:
15+
// Step 1: Select the method name (doesABear on line 20) Press the Run Button
16+
// PC: Ctrl+F11
17+
// Mac: Command+fn+F11
18+
// Step 2: Read the name of the method that failed
19+
// Step 3: Fill in the blank (___) to make it pass
20+
// Step 4: Consider at least one thing you just learned
21+
// Step 5: Advance to the next method
22+
// Do not change anything except the blank (___)
23+
//
24+
// concepts:
25+
// string concatenation
26+
// MVC
27+
@Test
28+
public void concatenateString() throws Exception
29+
{
30+
//create a new string from the strings "happy " + "baby"
31+
String[] words = {"happy ", ___};
32+
Assert.assertEquals("happy baby", words);
33+
}
34+
/**
35+
* Ignore the following, It's needed to run the homework
36+
*
37+
*
38+
*
39+
*
40+
*
41+
*
42+
*
43+
*
44+
*
45+
*
46+
*/
47+
public boolean _____ = false;
48+
public boolean ______ = true;
49+
public String ___ = "You need to fill in the blank ___";
50+
public int ____ = 0;
51+
public Color _______;
52+
public String ___()
53+
{
54+
return ___;
55+
}
56+
private Cursor getCursor()
57+
{
58+
Cursor cursor = Tortoise.getBackgroundWindow().getCursor();
59+
return cursor;
60+
}
61+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package org.teachingkidsprogramming.section07events;
2+
3+
import java.awt.Color;
4+
import java.awt.Cursor;
5+
6+
import org.junit.Assert;
7+
import org.junit.Test;
8+
import org.teachingextensions.logo.Tortoise;
9+
//This deepdive is in progress!
10+
11+
//
12+
public class DeepDive07Events
13+
{
14+
// How to do deep dive:
15+
// Step 1: Select the method name (doesABear on line 20) Press the Run Button
16+
// PC: Ctrl+F11
17+
// Mac: Command+fn+F11
18+
// Step 2: Read the name of the method that failed
19+
// Step 3: Fill in the blank (___) to make it pass
20+
// Step 4: Consider at least one thing you just learned
21+
// Step 5: Advance to the next method
22+
// Do not change anything except the blank (___)
23+
//
24+
// concepts:
25+
// events
26+
// arrays
27+
@Test
28+
public void concatenateString() throws Exception
29+
{
30+
//create a new string from the strings "happy " + "baby"
31+
String[] words = {"happy ", ___};
32+
Assert.assertEquals("happy baby", words);
33+
}
34+
/**
35+
* Ignore the following, It's needed to run the homework
36+
*
37+
*
38+
*
39+
*
40+
*
41+
*
42+
*
43+
*
44+
*
45+
*
46+
*/
47+
public boolean _____ = false;
48+
public boolean ______ = true;
49+
public String ___ = "You need to fill in the blank ___";
50+
public int ____ = 0;
51+
public Color _______;
52+
public String ___()
53+
{
54+
return ___;
55+
}
56+
private Cursor getCursor()
57+
{
58+
Cursor cursor = Tortoise.getBackgroundWindow().getCursor();
59+
return cursor;
60+
}
61+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
package org.teachingkidsprogramming.section08tdd;
2+
3+
import java.awt.Color;
4+
import java.awt.Cursor;
5+
6+
import org.junit.Assert;
7+
import org.junit.Test;
8+
import org.teachingextensions.logo.Tortoise;
9+
//This deepdive is in progress!
10+
11+
//
12+
public class DeepDive08TDD
13+
{
14+
// How to do deep dive:
15+
// Step 1: Select the method name (doesABear on line 20) Press the Run Button
16+
// PC: Ctrl+F11
17+
// Mac: Command+fn+F11
18+
// Step 2: Read the name of the method that failed
19+
// Step 3: Fill in the blank (___) to make it pass
20+
// Step 4: Consider at least one thing you just learned
21+
// Step 5: Advance to the next method
22+
// Do not change anything except the blank (___)
23+
//
24+
// concepts:
25+
// unit tests
26+
// type conversion
27+
// autoboxing
28+
@Test
29+
public void concatenateString() throws Exception
30+
{
31+
//create a new string from the strings "happy " + "baby"
32+
String[] words = {"happy ", ___};
33+
Assert.assertEquals("happy baby", words);
34+
}
35+
/**
36+
* Ignore the following, It's needed to run the homework
37+
*
38+
*
39+
*
40+
*
41+
*
42+
*
43+
*
44+
*
45+
*
46+
*
47+
*/
48+
public boolean _____ = false;
49+
public boolean ______ = true;
50+
public String ___ = "You need to fill in the blank ___";
51+
public int ____ = 0;
52+
public Color _______;
53+
public String ___()
54+
{
55+
return ___;
56+
}
57+
private Cursor getCursor()
58+
{
59+
Cursor cursor = Tortoise.getBackgroundWindow().getCursor();
60+
return cursor;
61+
}
62+
}

0 commit comments

Comments
 (0)