Update tests
This commit is contained in:
parent
ec886bf6ba
commit
c28c66b56b
@ -25,17 +25,17 @@ object FieldSynchronizerTests {
|
||||
val intA3 = a.int()
|
||||
val intB3 = b.int()
|
||||
|
||||
boolA.setValue(true)
|
||||
intA.setValue(8384)
|
||||
intA2.setValue(348488)
|
||||
intA3.setValue(-4)
|
||||
boolA.value = true
|
||||
intA.value = 8384
|
||||
intA2.value = 348488
|
||||
intA3.value = -4
|
||||
|
||||
b.applyNetworkPayload(ByteArrayInputStream(a.collectNetworkPayload()!!.array))
|
||||
|
||||
assertEquals(boolA.getValue(), boolB.getValue())
|
||||
assertEquals(intA.getValue(), intB.getValue())
|
||||
assertEquals(intA2.getValue(), intB2.getValue())
|
||||
assertEquals(intA3.getValue(), intB3.getValue())
|
||||
assertEquals(boolA.value, boolB.value)
|
||||
assertEquals(intA.value, intB.value)
|
||||
assertEquals(intA2.value, intB2.value)
|
||||
assertEquals(intA3.value, intB3.value)
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -56,16 +56,16 @@ object FieldSynchronizerTests {
|
||||
val intA3 = a.int()
|
||||
val intB3 = b.int()
|
||||
|
||||
boolA.setValue(true)
|
||||
boolA.value = true
|
||||
//intA.setValue(8384)
|
||||
//intA2.setValue(348488)
|
||||
intA3.setValue(-4)
|
||||
intA3.value = -4
|
||||
|
||||
b.applyNetworkPayload(ByteArrayInputStream(a.collectNetworkPayload()!!.array))
|
||||
|
||||
assertEquals(boolA.getValue(), boolB.getValue())
|
||||
assertEquals(intA.getValue(), intB.getValue())
|
||||
assertEquals(intA2.getValue(), intB2.getValue())
|
||||
assertEquals(intA3.getValue(), intB3.getValue())
|
||||
assertEquals(boolA.value, boolB.value)
|
||||
assertEquals(intA.value, intB.value)
|
||||
assertEquals(intA2.value, intB2.value)
|
||||
assertEquals(intA3.value, intB3.value)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user