aboutsummaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-domain
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2019-02-18 13:16:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-18 13:16:37 +0000
commitdc47bd1847a46fe0ad0ca6c10a4d61f829f4c0c6 (patch)
tree1b9eff9ac4b334d5d8b9eedda2487711d363c060 /sources/hv-collector-domain
parent7b4e5e94ce9533fb9bcb53a764eeb63e7a0bef00 (diff)
parentdf17f466577b97a12fac39b64b5d113f32b82f2e (diff)
Merge "Generate VesEvents in hv-ves/message-generator"
Diffstat (limited to 'sources/hv-collector-domain')
-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 =