Skip to content

Commit 2b2022c

Browse files
author
Grzegorz Piwowarek
committed
Refactor spring-protobuf
1 parent b1bdeb9 commit 2b2022c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎spring-protobuf/src/main/java/com/baeldung/protobuf/Application.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ ProtobufHttpMessageConverter protobufHttpMessageConverter() {
2929
}
3030

3131
@Bean
32-
public CourseRepository createStubCourses() {
32+
public CourseRepository createTestCourses() {
3333
Map<Integer, Course> courses = new HashMap<>();
3434

35-
Course course1 = Course.newBuilder().setId(1).setCourseName("REST with Spring").addAllStudent(createStubStudents()).build();
35+
Course course1 = Course.newBuilder().setId(1).setCourseName("REST with Spring").addAllStudent(createTestStudents()).build();
3636

3737
Course course2 = Course.newBuilder().setId(2).setCourseName("Learn Spring Security").addAllStudent(new ArrayList<>()).build();
3838

@@ -42,7 +42,7 @@ public CourseRepository createStubCourses() {
4242
return new CourseRepository(courses);
4343
}
4444

45-
private List<Student> createStubStudents() {
45+
private List<Student> createTestStudents() {
4646
PhoneNumber phone1 = createPhone("123456", PhoneType.MOBILE);
4747
Student student1 = createStudent(1, "John", "Doe", "john.doe@baeldung.com", Arrays.asList(phone1));
4848

0 commit comments

Comments
 (0)