!864 修复BeanUtilTest的变量赋值错误

Merge pull request !864 from emptypoint/fix-BeanUtilTest
This commit is contained in:
Looly 2022-11-10 03:55:02 +00:00 committed by Gitee
commit 1eb8acfcba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -342,9 +342,9 @@ public class BeanUtilTest {
student.setNo(3158L); student.setNo(3158L);
final Student student2 = new Student(); final Student student2 = new Student();
student.setName("李四"); student2.setName("李四");
student.setAge(125); student2.setAge(125);
student.setNo(8848L); student2.setNo(8848L);
final List<Student> studentList = ListUtil.view(student, student2); final List<Student> studentList = ListUtil.view(student, student2);
@ -669,9 +669,9 @@ public class BeanUtilTest {
student.setNo(3158L); student.setNo(3158L);
final Student student2 = new Student(); final Student student2 = new Student();
student.setName("李四"); student2.setName("李四");
student.setAge(125); student2.setAge(125);
student.setNo(8848L); student2.setNo(8848L);
final List<Student> studentList = ListUtil.view(student, student2); final List<Student> studentList = ListUtil.view(student, student2);
final List<Person> people = BeanUtil.copyToList(studentList, Person.class); final List<Person> people = BeanUtil.copyToList(studentList, Person.class);