@@ -64,6 +64,12 @@ public OracleClobAsOsonCompatibilityTest() {
64
64
65
65
private final String jsonType ;
66
66
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
+
67
73
public OracleOsonCompatibilityTest (String jsonType ) {
68
74
this .jsonType = jsonType ;
69
75
}
@@ -84,11 +90,7 @@ public void setup(SessionFactoryScope scope) {
84
90
85
91
String insert = "INSERT INTO TEST_OSON_COMPAT (id, payload) VALUES(:id,:json)" ;
86
92
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
+
92
94
93
95
StringBuilder j = new StringBuilder ();
94
96
j .append ( "{" );
@@ -115,6 +117,9 @@ public void verifyReadWorks(SessionFactoryScope scope) {
115
117
JsonEntity entity = session .find ( OracleOsonCompatibilityTest .JsonEntity .class , 1 );
116
118
assertThat ( entity .payload .jsonString , is ( "john" ) );
117
119
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 ) );
118
123
}
119
124
);
120
125
}
0 commit comments