|
35 | 35 | import org.springframework.dao.IncorrectResultSizeDataAccessException; |
36 | 36 | import org.springframework.data.jpa.repository.JpaRepository; |
37 | 37 |
|
| 38 | +@SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
38 | 39 | public abstract class AbstractSpringJpaTest< |
39 | 40 | ENTITY, REPOSITORY extends JpaRepository<ENTITY, Long>> { |
40 | 41 |
|
@@ -74,7 +75,6 @@ void testObjectMethod() { |
74 | 75 | span -> span.hasName("toString test").hasTotalAttributeCount(0))); |
75 | 76 | } |
76 | 77 |
|
77 | | - @SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
78 | 78 | static void assertHibernate4Trace(TraceAssert trace, String repoClassName) { |
79 | 79 | trace.hasSpansSatisfyingExactly( |
80 | 80 | span -> |
@@ -103,7 +103,6 @@ DB_CONNECTION_STRING, emitStableDatabaseSemconv() ? null : "hsqldb:mem:"), |
103 | 103 | emitStableDatabaseSemconv() ? null : "JpaCustomer"))); |
104 | 104 | } |
105 | 105 |
|
106 | | - @SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
107 | 106 | static void assertHibernateTrace(TraceAssert trace, String repoClassName) { |
108 | 107 | trace.hasSpansSatisfyingExactly( |
109 | 108 | span -> |
@@ -163,7 +162,6 @@ DB_CONNECTION_STRING, emitStableDatabaseSemconv() ? null : "hsqldb:mem:"), |
163 | 162 | emitStableDatabaseSemconv() ? null : "JpaCustomer"))); |
164 | 163 | } |
165 | 164 |
|
166 | | - @SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
167 | 165 | @Test |
168 | 166 | void testCrud() { |
169 | 167 | boolean isHibernate4 = Version.getVersionString().startsWith("4."); |
@@ -374,7 +372,6 @@ void testCrud() { |
374 | 372 | emitStableDatabaseSemconv() ? null : "JpaCustomer")))); |
375 | 373 | } |
376 | 374 |
|
377 | | - @SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
378 | 375 | @Test |
379 | 376 | void testCustomRepositoryMethod() { |
380 | 377 | REPOSITORY repo = repository(); |
@@ -417,7 +414,6 @@ void testCustomRepositoryMethod() { |
417 | 414 | emitStableDatabaseSemconv() ? null : "JpaCustomer")))); |
418 | 415 | } |
419 | 416 |
|
420 | | - @SuppressWarnings("deprecation") // TODO DB_CONNECTION_STRING deprecation |
421 | 417 | @Test |
422 | 418 | void testFailedRepositoryMethod() { |
423 | 419 | // given |
|
0 commit comments