aboutsummaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-domain/src
diff options
context:
space:
mode:
Diffstat (limited to 'sources/hv-collector-domain/src')
-rw-r--r--sources/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt b/sources/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
index f8fbc0a3..fe39291b 100644
--- a/sources/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
+++ b/sources/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
@@ -22,6 +22,7 @@ package org.onap.dcae.collectors.veshv.domain
import arrow.core.Either
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
+import org.assertj.core.api.Assertions
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.ObjectAssert
import org.jetbrains.spek.api.Spek
@@ -274,7 +275,7 @@ private fun assertBufferIntact(buff: ByteBuf) {
}
private fun <A, B> Either<A, B>.assertFailedWithError(assertj: (ObjectAssert<A>) -> Unit) {
- fold({ assertj(assertThat(it)) }, { fail("Error expected") })
+ fold({ assertj(Assertions.assertThat(it)) }, { fail("Error expected") })
}
private fun Either<WireFrameDecodingError, WireFrameMessage>.getMessageOrFail(): WireFrameMessage =