@@ -108,9 +108,9 @@ class DefaultLiveMapTest: IntegrationTest() {
108108 val testMapObjectId = restObjects.createMap(
109109 channelName,
110110 data = mapOf (
111- " name" to ObjectData (value = ObjectValue (" Alice" )),
112- " age" to ObjectData (value = ObjectValue (30 )),
113- " isActive" to ObjectData (value = ObjectValue (true ))
111+ " name" to ObjectData (value = ObjectValue . String (" Alice" )),
112+ " age" to ObjectData (value = ObjectValue . Number (30 )),
113+ " isActive" to ObjectData (value = ObjectValue . Boolean (true ))
114114 )
115115 )
116116 restObjects.setMapRef(channelName, " root" , " testMap" , testMapObjectId)
@@ -127,7 +127,7 @@ class DefaultLiveMapTest: IntegrationTest() {
127127 assertEquals(true , testMap.get(" isActive" ), " Initial active status should be true" )
128128
129129 // Step 2: Update an existing field (name from "Alice" to "Bob")
130- restObjects.setMapValue(channelName, testMapObjectId, " name" , ObjectValue (" Bob" ))
130+ restObjects.setMapValue(channelName, testMapObjectId, " name" , ObjectValue . String (" Bob" ))
131131 // Wait for the map to be updated
132132 assertWaiter { testMap.get(" name" ) == " Bob" }
133133
@@ -138,7 +138,7 @@ class DefaultLiveMapTest: IntegrationTest() {
138138 assertEquals(true , testMap.get(" isActive" ), " Active status should remain unchanged" )
139139
140140 // Step 3: Add a new field (email)
141- restObjects.setMapValue(channelName, testMapObjectId, " email" , ObjectValue (" bob@example.com" ))
141+ restObjects.setMapValue(channelName, testMapObjectId, " email" , ObjectValue . String (" bob@example.com" ))
142142 // Wait for the map to be updated
143143 assertWaiter { testMap.get(" email" ) == " bob@example.com" }
144144
@@ -150,7 +150,7 @@ class DefaultLiveMapTest: IntegrationTest() {
150150 assertEquals(" bob@example.com" , testMap.get(" email" ), " Email should be added successfully" )
151151
152152 // Step 4: Add another new field with different data type (score as number)
153- restObjects.setMapValue(channelName, testMapObjectId, " score" , ObjectValue (85 ))
153+ restObjects.setMapValue(channelName, testMapObjectId, " score" , ObjectValue . Number (85 ))
154154 // Wait for the map to be updated
155155 assertWaiter { testMap.get(" score" ) == 85.0 }
156156
@@ -163,7 +163,7 @@ class DefaultLiveMapTest: IntegrationTest() {
163163 assertEquals(85.0 , testMap.get(" score" ), " Score should be added as numeric value" )
164164
165165 // Step 5: Update the boolean field
166- restObjects.setMapValue(channelName, testMapObjectId, " isActive" , ObjectValue (false ))
166+ restObjects.setMapValue(channelName, testMapObjectId, " isActive" , ObjectValue . Boolean (false ))
167167 // Wait for the map to be updated
168168 assertWaiter { testMap.get(" isActive" ) == false }
169169
0 commit comments