You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun`replay token with complex object as String context`() {
112
+
@Serializable
113
+
data classComplexContext(valvalue1:String, valvalue2:Int, valvalue3:Boolean)
114
+
val complexContext =ComplexContext("value1", 2, false)
115
+
116
+
val token =ReplayToken.createReplayToken(
117
+
GlobalSequenceTrackingToken(15),
118
+
GlobalSequenceTrackingToken(10),
119
+
Json.encodeToString(complexContext)
120
+
)
121
+
val json ="""{"tokenAtReset":{"type":"org.axonframework.eventhandling.GlobalSequenceTrackingToken","globalIndex":15},"currentToken":{"type":"org.axonframework.eventhandling.GlobalSequenceTrackingToken","globalIndex":10},"context":"{\"value1\":\"value1\",\"value2\":2,\"value3\":false}"}""".trimIndent()
0 commit comments