Upgrade to Hibernate 6.2.22.Final
* Fix JPA test for the latest Hibernate
This commit is contained in:
@@ -66,7 +66,7 @@ ext {
|
||||
groovyVersion = '4.0.18'
|
||||
hamcrestVersion = '2.2'
|
||||
hazelcastVersion = '5.2.4'
|
||||
hibernateVersion = '6.2.13.Final'
|
||||
hibernateVersion = '6.2.22.Final'
|
||||
hsqldbVersion = '2.7.2'
|
||||
h2Version = '2.2.224'
|
||||
jacksonVersion = '2.15.3'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -207,7 +207,6 @@ public class HibernateJpaOperationsTests {
|
||||
entityManager.flush();
|
||||
assertThat(savedStudent).isNotNull();
|
||||
assertThat(savedStudent.getRollNumber()).isNotNull();
|
||||
assertThat(student.getRollNumber()).isEqualTo(savedStudent.getRollNumber());
|
||||
|
||||
assertThat(student != savedStudent).isTrue();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -166,7 +166,6 @@ public class JpaTests {
|
||||
StudentDomain mergedStudent = (StudentDomain) receive.getPayload();
|
||||
assertThat(mergedStudent.getFirstName()).isEqualTo(student.getFirstName());
|
||||
assertThat(mergedStudent.getRollNumber()).isNotNull();
|
||||
assertThat(student.getRollNumber()).isEqualTo(mergedStudent.getRollNumber());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -102,7 +102,7 @@ public class JpaOutboundChannelAdapterTests {
|
||||
List<?> results2 = this.jdbcTemplate.queryForList("Select * from Student");
|
||||
assertThat(results2).hasSize(4);
|
||||
|
||||
assertThat(testStudent.getRollNumber()).isNotNull();
|
||||
assertThat(results2.get(0)).extracting("rollNumber").isNotNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -134,7 +134,7 @@ public class JpaOutboundChannelAdapterTests {
|
||||
List<?> results2 = this.jdbcTemplate.queryForList("Select * from Student");
|
||||
assertThat(results2).hasSize(4);
|
||||
|
||||
assertThat(testStudent.getRollNumber()).isNotNull();
|
||||
assertThat(results2.get(0)).extracting("rollNumber").isNotNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,7 +72,7 @@ public class JpaOutboundChannelAdapterTransactionalTests {
|
||||
.queryForList("Select * from Student");
|
||||
|
||||
assertThat(results2).hasSize(4);
|
||||
assertThat(testStudent.getRollNumber()).isNotNull();
|
||||
assertThat(results2.get(0)).extracting("rollNumber").isNotNull();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user