From c28c66b56ba50fc42adfac582c18d23cfc69233c Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 31 Aug 2022 12:06:26 +0700 Subject: [PATCH] Update tests --- .../mc/otm/tests/FieldSynchronizerTests.kt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/kotlin/ru/dbotthepony/mc/otm/tests/FieldSynchronizerTests.kt b/src/test/kotlin/ru/dbotthepony/mc/otm/tests/FieldSynchronizerTests.kt index 91f47a8a3..e4f4deeff 100644 --- a/src/test/kotlin/ru/dbotthepony/mc/otm/tests/FieldSynchronizerTests.kt +++ b/src/test/kotlin/ru/dbotthepony/mc/otm/tests/FieldSynchronizerTests.kt @@ -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) } }