@@ -64,6 +64,12 @@ public OracleClobAsOsonCompatibilityTest() {
6464
6565 private final String jsonType ;
6666
67+ private final LocalDateTime theLocalDateTime = LocalDateTime .of ( 2000 , 1 , 1 , 0 , 0 , 0 );
68+ private final LocalDate theLocalDate = LocalDate .of ( 2000 , 1 , 1 );
69+ private final LocalTime theLocalTime = LocalTime .of ( 1 , 0 , 0 );
70+ private final UUID uuid = UUID .fromString ("53886a8a-7082-4879-b430-25cb94415be8" );
71+ private final String theString = "john" ;
72+
6773 public OracleOsonCompatibilityTest (String jsonType ) {
6874 this .jsonType = jsonType ;
6975 }
@@ -84,11 +90,7 @@ public void setup(SessionFactoryScope scope) {
8490
8591 String insert = "INSERT INTO TEST_OSON_COMPAT (id, payload) VALUES(:id,:json)" ;
8692
87- LocalDateTime theLocalDateTime = LocalDateTime .of ( 2000 , 1 , 1 , 0 , 0 , 0 );
88- LocalDate theLocalDate = LocalDate .of ( 2000 , 1 , 1 );
89- LocalTime theLocalTime = LocalTime .of ( 1 , 0 , 0 );
90- UUID uuid = UUID .fromString ("53886a8a-7082-4879-b430-25cb94415be8" );
91- String theString = "john" ;
93+
9294
9395 StringBuilder j = new StringBuilder ();
9496 j .append ( "{" );
@@ -115,6 +117,9 @@ public void verifyReadWorks(SessionFactoryScope scope) {
115117 JsonEntity entity = session .find ( OracleOsonCompatibilityTest .JsonEntity .class , 1 );
116118 assertThat ( entity .payload .jsonString , is ( "john" ) );
117119 assertThat ( entity .payload .theUuid .toString (), is ( "53886a8a-7082-4879-b430-25cb94415be8" ) );
120+ assertThat ( entity .payload .theLocalDateTime , is ( theLocalDateTime ) );
121+ assertThat ( entity .payload .theLocalTime , is ( theLocalTime ) );
122+ assertThat ( entity .payload .theLocalDate , is ( theLocalDate ) );
118123 }
119124 );
120125 }
0 commit comments