@@ -33,7 +33,7 @@ void setUp() {
33
33
}
34
34
35
35
@ Test
36
- void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
36
+ public void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
37
37
// Use getSimpleProperty to retrieve the 'name' property from the course bean
38
38
String courseName = (String ) PropertyUtils .getSimpleProperty (course , "name" );
39
39
@@ -42,7 +42,7 @@ void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturn
42
42
}
43
43
44
44
@ Test
45
- void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
45
+ public void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
46
46
// Use getIndexedProperty to retrieve the element at index 1 from the 'codes' list
47
47
String secondCode = (String ) PropertyUtils .getIndexedProperty (course , "codes[1]" );
48
48
@@ -51,7 +51,7 @@ void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueRetur
51
51
}
52
52
53
53
@ Test
54
- void givenCourse_whenGettingMappedPropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
54
+ public void givenCourse_whenGettingMappedPropertyValueUsingPropertyUtil_thenValueReturned () throws IllegalAccessException , InvocationTargetException , NoSuchMethodException {
55
55
// Use getMappedProperty to retrieve the value associated with the key '01'
56
56
// from the 'enrolledStudent' map
57
57
Student enrolledStudent = (Student ) PropertyUtils .getMappedProperty (course , "enrolledStudent(" + STUDENT_ID + ")" );
0 commit comments