|
@@ -137,7 +137,7 @@
|
137
|
137
|
|
138
|
138
|
|
139
|
139
|
-
|
140
|
|
-## Part 10 - Test `Config` classes
|
|
140
|
+## Part 10.0 - Test `Config` classes
|
141
|
141
|
* Each of the following `Test` classes should be annotated with
|
142
|
142
|
* `@SpringBootTest`
|
143
|
143
|
* indicates that this class is a Spring Boot test class
|
|
@@ -165,15 +165,21 @@
|
165
|
165
|
* Create a `TestClassroomConfig` class in the `test` package.
|
166
|
166
|
* The class should ensure that each `Bean` in the `TestClassroomConfig` class is configured as expected.
|
167
|
167
|
|
168
|
|
-## Part 11 - Using `@Component`
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+## Part 11.0 - Using `@Component`
|
169
|
175
|
* Annotating a class signature class with `@Component` allows Spring to register this class as a `Bean` implicitly.
|
170
|
176
|
-
|
171
|
|
-### Part 11 - Create `Alumni` Class
|
|
177
|
+### Part 11.1 - Create `Alumni` Class
|
172
|
178
|
* Create an `Alumni` component which autowires `Students` of the previous and `Instructors`
|
173
|
179
|
* Create an `executeBootcamp` method which teaches each `Student` in the composite `Students` a `totalNumberOfHours` of `1200`.
|
174
|
180
|
* Annotate this method with `@PostConstruct`
|
175
|
181
|
* denotes that this method must be executed before the class is put into an IoC container
|
176
|
182
|
|
177
|
183
|
-
|
178
|
|
-### Part 11.1 - Test `Alumni` Class
|
|
184
|
+### Part 11.2 - Test `Alumni` Class
|
179
|
185
|
* Write a test class which ensures that each `Student` in the `Alumni` class has been taught `1200` hours upon injection of the `Alumni` dependency.
|