Commit cd554c8 1 parent a3b88ff commit cd554c8 Copy full SHA for cd554c8
File tree 1 file changed +2
-1
lines changed
core/src/test/java/io/github/zero88/schedulerx/trigger/rule
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import io .github .zero88 .schedulerx .TestUtils ;
22
22
import io .github .zero88 .schedulerx .trigger .rule .custom .SimpleDateTimeTimeframe ;
23
+ import io .vertx .core .json .JsonObject ;
23
24
24
25
import com .fasterxml .jackson .core .JsonProcessingException ;
25
26
import com .fasterxml .jackson .databind .ObjectMapper ;
@@ -109,7 +110,7 @@ void serialize_deserialize_custom_Timeframe() throws JsonProcessingException {
109
110
"\" timeZone\" :\" Europe/Paris\" ,\" type\" :\" java.util.Date\" }" ;
110
111
final Timeframe <?> timeframe = mapper .readValue (expected , Timeframe .class );
111
112
Assertions .assertInstanceOf (SimpleDateTimeTimeframe .class , timeframe );
112
- Assertions .assertEquals (expected , mapper .writeValueAsString (timeframe ));
113
+ Assertions .assertEquals (new JsonObject ( expected ), new JsonObject ( mapper .writeValueAsString (timeframe ) ));
113
114
}
114
115
115
116
}
You can’t perform that action at this time.
0 commit comments