Skip to content

Commit bd93121

Browse files
bael-8095: fixing test script by adding non unique lastname record (eugenp#17087)
Co-authored-by: technoddy <mail.technoddy@gmail.com>
1 parent d206b50 commit bd93121

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

persistence-modules/spring-data-jpa-simple/src/test/java/com/baeldung/jpa/projection/JpaProjectionIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void whenUsingOpenProjections_thenViewWithRequiredPropertiesIsReturned() {
5050
void whenUsingClassBasedProjectionsAndJPANativeQuery_thenDtoWithRequiredPropertiesIsReturned() {
5151
List<PersonDto> personDtos = personRepository.findByFirstNameLike("Jo%");
5252
assertThat(personDtos.size()).isEqualTo(2);
53-
assertThat(personDtos).isEqualTo(Arrays.asList(new PersonDto("John", "Doe"), new PersonDto("Job", "Doe")));
53+
assertThat(personDtos).isEqualTo(Arrays.asList(new PersonDto("John", "Doe"), new PersonDto("Job", "Dob")));
5454
}
5555

5656
@Test
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
INSERT INTO person(id,first_name,last_name) VALUES (1,'John','Doe');
2-
INSERT INTO person(id,first_name,last_name) VALUES (2,'Job','Doe');
2+
INSERT INTO person(id,first_name,last_name) VALUES (2,'Job','Dob');
33
INSERT INTO address(id,person_id,state,city,street,zip_code) VALUES (1,1,'CA', 'Los Angeles', 'Standford Ave', '90001');

0 commit comments

Comments
 (0)