|
| 1 | +package org.baeldung.mock; |
| 2 | + |
| 3 | +import java.util.ArrayList; |
| 4 | +import java.util.List; |
| 5 | + |
| 6 | +import org.baeldung.web.vo.Student; |
| 7 | + |
| 8 | +public class MockStudentData { |
| 9 | + |
| 10 | + private static List<Student> studentList = new ArrayList<>(); |
| 11 | + |
| 12 | + static { |
| 13 | + studentList.add(new Student("1", "Bryan", "Male", 20)); |
| 14 | + studentList.add(new Student("2", "Ben", "Male", 22)); |
| 15 | + studentList.add(new Student("3", "Lisa", "Female", 24)); |
| 16 | + studentList.add(new Student("4", "Sarah", "Female", 26)); |
| 17 | + studentList.add(new Student("5", "Jay", "Male", 20)); |
| 18 | + studentList.add(new Student("6", "John", "Male", 22)); |
| 19 | + studentList.add(new Student("7", "Jordan", "Male", 24)); |
| 20 | + studentList.add(new Student("8", "Rob", "Male", 26)); |
| 21 | + studentList.add(new Student("9", "Will", "Male", 20)); |
| 22 | + studentList.add(new Student("10", "Shawn", "Male", 22)); |
| 23 | + studentList.add(new Student("11", "Taylor", "Female", 24)); |
| 24 | + studentList.add(new Student("12", "Venus", "Female", 26)); |
| 25 | + studentList.add(new Student("13", "Vince", "Male", 20)); |
| 26 | + studentList.add(new Student("14", "Carol", "Female", 22)); |
| 27 | + studentList.add(new Student("15", "Joana", "Female", 24)); |
| 28 | + studentList.add(new Student("16", "Dion", "Male", 26)); |
| 29 | + studentList.add(new Student("17", "Evans", "Male", 20)); |
| 30 | + studentList.add(new Student("18", "Bart", "Male", 22)); |
| 31 | + studentList.add(new Student("19", "Jenny", "Female", 24)); |
| 32 | + studentList.add(new Student("20", "Kristine", "Female", 26)); |
| 33 | + } |
| 34 | + |
| 35 | + public static List<Student> getMockDataStudents(){ |
| 36 | + return studentList; |
| 37 | + } |
| 38 | + |
| 39 | +} |
0 commit comments