diff --git a/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala b/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala index b7871065b..40a185148 100644 --- a/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala +++ b/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala @@ -160,8 +160,8 @@ class MessageBufferTest "convert to ByteBuffer" in { for (t <- buffers) { val bb = t.sliceAsByteBuffer - bb.position shouldBe 0 - bb.limit shouldBe 10 + bb.position() shouldBe 0 + bb.limit() shouldBe 10 bb.capacity shouldBe 10 } }