Skip to content

Commit 90c5d56

Browse files
authored
Update CourseServiceUnitTest.java
1 parent f03af5a commit 90c5d56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries-apache-commons/src/test/java/com/baeldung/commons/beanutils/CourseServiceUnitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setUp() {
3333
}
3434

3535
@Test
36-
void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
36+
public void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
3737
// Use getSimpleProperty to retrieve the 'name' property from the course bean
3838
String courseName = (String) PropertyUtils.getSimpleProperty(course, "name");
3939

@@ -42,7 +42,7 @@ void givenCourse_whenGettingSimplePropertyValueUsingPropertyUtil_thenValueReturn
4242
}
4343

4444
@Test
45-
void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
45+
public void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
4646
// Use getIndexedProperty to retrieve the element at index 1 from the 'codes' list
4747
String secondCode = (String) PropertyUtils.getIndexedProperty(course, "codes[1]");
4848

@@ -51,7 +51,7 @@ void givenCourse_whenGettingIndexedPropertyValueUsingPropertyUtil_thenValueRetur
5151
}
5252

5353
@Test
54-
void givenCourse_whenGettingMappedPropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
54+
public void givenCourse_whenGettingMappedPropertyValueUsingPropertyUtil_thenValueReturned() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
5555
// Use getMappedProperty to retrieve the value associated with the key '01'
5656
// from the 'enrolledStudent' map
5757
Student enrolledStudent = (Student) PropertyUtils.getMappedProperty(course, "enrolledStudent(" + STUDENT_ID + ")");

0 commit comments

Comments
 (0)