|
|
@@ -28,14 +28,14 @@ public class SchoolTest {
|
|
28
|
28
|
assertThat(school.numberOfStudents(), is(0));
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
31
|
|
- @Ignore
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
32
|
@Test
|
|
33
|
33
|
public void addsStudents() {
|
|
34
|
34
|
school.add("Aimee", 2);
|
|
35
|
35
|
assertThat(school.grade(2), hasItem("Aimee"));
|
|
36
|
36
|
}
|
|
37
|
37
|
|
|
38
|
|
- @Ignore
|
|
|
38
|
+ @Ignore("Remove to run test")
|
|
39
|
39
|
@Test
|
|
40
|
40
|
public void addsMoreStudentsInSameGrade() {
|
|
41
|
41
|
final int grade = 2;
|
|
|
@@ -47,7 +47,7 @@ public class SchoolTest {
|
|
47
|
47
|
assertThat(school.grade(grade), allOf(hasItem("James"), hasItem("Blair"), hasItem("Paul")));
|
|
48
|
48
|
}
|
|
49
|
49
|
|
|
50
|
|
- @Ignore
|
|
|
50
|
+ @Ignore("Remove to run test")
|
|
51
|
51
|
@Test
|
|
52
|
52
|
public void addsStudentsInMultipleGrades() {
|
|
53
|
53
|
school.add("Chelsea", 3);
|
|
|
@@ -60,13 +60,13 @@ public class SchoolTest {
|
|
60
|
60
|
assertThat(school.grade(7), hasItem("Logan"));
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
|
- @Ignore
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
64
|
@Test
|
|
65
|
65
|
public void getsStudentsInEmptyGrade() {
|
|
66
|
66
|
assertTrue(school.grade(1).isEmpty());
|
|
67
|
67
|
}
|
|
68
|
68
|
|
|
69
|
|
- @Ignore
|
|
|
69
|
+ @Ignore("Remove to run test")
|
|
70
|
70
|
@Test
|
|
71
|
71
|
public void sortsSchool() {
|
|
72
|
72
|
school.add("Kyle", 4);
|
|
|
@@ -91,7 +91,7 @@ public class SchoolTest {
|
|
91
|
91
|
}
|
|
92
|
92
|
}
|
|
93
|
93
|
|
|
94
|
|
- @Ignore
|
|
|
94
|
+ @Ignore("Remove to run test")
|
|
95
|
95
|
@Test
|
|
96
|
96
|
public void modifyingFetchedGradeShouldNotModifyInternalDatabase() {
|
|
97
|
97
|
String shouldNotBeAdded = "Should not be added to school";
|
|
|
@@ -109,7 +109,7 @@ public class SchoolTest {
|
|
109
|
109
|
assertThat(school.grade(grade), not(hasItem(shouldNotBeAdded)));
|
|
110
|
110
|
}
|
|
111
|
111
|
|
|
112
|
|
- @Ignore
|
|
|
112
|
+ @Ignore("Remove to run test")
|
|
113
|
113
|
@Test
|
|
114
|
114
|
public void modifyingSortedStudentsShouldNotModifyInternalDatabase() {
|
|
115
|
115
|
int grade = 2;
|