|
5 | 5 | */
|
6 | 6 | package org.hibernate.reactive;
|
7 | 7 |
|
8 |
| -import io.vertx.junit5.Timeout; |
9 |
| -import io.vertx.junit5.VertxTestContext; |
10 |
| -import jakarta.persistence.*; |
| 8 | +import java.time.LocalDateTime; |
| 9 | +import java.util.Collection; |
| 10 | +import java.util.List; |
11 | 11 |
|
12 | 12 | import org.hibernate.HibernateException;
|
13 | 13 | import org.hibernate.annotations.SQLDelete;
|
14 | 14 | import org.hibernate.annotations.SQLInsert;
|
15 |
| -import org.hibernate.reactive.testing.DBSelectionExtension; |
16 | 15 | import org.hibernate.reactive.testing.ReactiveAssertions;
|
| 16 | +import org.hibernate.reactive.annotations.RunDBType; |
17 | 17 |
|
18 | 18 | import org.junit.jupiter.api.Assertions;
|
19 | 19 | import org.junit.jupiter.api.BeforeEach;
|
20 | 20 | import org.junit.jupiter.api.Test;
|
21 |
| -import org.junit.jupiter.api.extension.RegisterExtension; |
22 |
| - |
23 |
| -import java.time.LocalDateTime; |
24 |
| -import java.util.Collection; |
25 |
| -import java.util.List; |
26 | 21 |
|
27 |
| -import static java.util.concurrent.TimeUnit.*; |
| 22 | +import io.vertx.junit5.Timeout; |
| 23 | +import io.vertx.junit5.VertxTestContext; |
| 24 | +import jakarta.persistence.Basic; |
| 25 | +import jakarta.persistence.Column; |
| 26 | +import jakarta.persistence.Entity; |
| 27 | +import jakarta.persistence.GeneratedValue; |
| 28 | +import jakarta.persistence.Id; |
| 29 | +import jakarta.persistence.JoinColumn; |
| 30 | +import jakarta.persistence.OneToOne; |
| 31 | +import jakarta.persistence.Table; |
| 32 | + |
| 33 | +import static java.util.concurrent.TimeUnit.MINUTES; |
28 | 34 | import static org.assertj.core.api.Assertions.assertThat;
|
29 |
| -import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.*; |
30 |
| -import static org.hibernate.reactive.testing.DBSelectionExtension.*; |
31 |
| -import static org.junit.jupiter.api.Assertions.*; |
| 35 | +import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.POSTGRESQL; |
| 36 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 37 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
32 | 38 |
|
33 | 39 | @Timeout(value = 10, timeUnit = MINUTES)
|
34 |
| - |
| 40 | +@RunDBType( value = POSTGRESQL ) |
35 | 41 | public class CustomOneToOneStoredProcedureSqlTest extends BaseReactiveTest {
|
36 | 42 |
|
37 |
| - @RegisterExtension |
38 |
| - public DBSelectionExtension dbSelection = runOnlyFor( POSTGRESQL ); |
39 | 43 | private IndividualPerson individualPerson;
|
40 | 44 | private DriverLicence driverLicence;
|
41 | 45 | private static final String INITIAL_LICENCE_NO = "12545KLI12";
|
|
0 commit comments