File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
main/java/org/hibernate/type/format
test/java/org/hibernate/orm/test/mapping/hhh17404 Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,12 @@ private void moveStateMachine(StringJsonDocumentMarker marker) {
114
114
assert this .processingStates .getCurrent () == JsonProcessingState .OBJECT ;
115
115
break ;
116
116
case QUOTE :
117
- switch ( currentState ) {
118
- case STARTING_ARRAY :
119
- this .processingStates .push ( JsonProcessingState .ARRAY );
120
- break ;
121
- case STARTING_OBJECT :
122
- this .processingStates .push ( JsonProcessingState .OBJECT );
123
- this .processingStates .push ( JsonProcessingState .OBJECT_KEY_NAME );
124
- break ;
117
+ if (currentState == JsonProcessingState .STARTING_ARRAY ) {
118
+ this .processingStates .push ( JsonProcessingState .ARRAY );
119
+ }
120
+ if (currentState == JsonProcessingState .STARTING_OBJECT ) {
121
+ this .processingStates .push ( JsonProcessingState .OBJECT );
122
+ this .processingStates .push ( JsonProcessingState .OBJECT_KEY_NAME );
125
123
}
126
124
break ;
127
125
case OTHER :
Original file line number Diff line number Diff line change 18
18
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
19
19
import org .hibernate .testing .orm .junit .Setting ;
20
20
import org .hibernate .type .SqlTypes ;
21
+ import org .junit .jupiter .api .AfterEach ;
21
22
import org .junit .jupiter .api .BeforeEach ;
22
23
import org .junit .jupiter .api .Test ;
23
24
@@ -110,6 +111,15 @@ public void setup(SessionFactoryScope scope) {
110
111
);
111
112
}
112
113
114
+ @ AfterEach
115
+ public void tearDown (SessionFactoryScope scope ) {
116
+ scope .inTransaction (
117
+ (session ) -> {
118
+ session .createNativeQuery ( session .getDialect ().getDropTableString ( "TEST_OSON_COMPAT" ) ).executeUpdate ();
119
+ }
120
+ );
121
+ }
122
+
113
123
@ Test
114
124
public void verifyReadWorks (SessionFactoryScope scope ) {
115
125
scope .inTransaction (
You can’t perform that action at this time.
0 commit comments