package org.onap.dcae.collectors.veshv.impl
import arrow.core.Option
+import arrow.core.Try
+import arrow.core.success
import com.google.protobuf.ByteString
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.onap.dcae.collectors.veshv.model.VesMessage
import org.onap.dcae.collectors.veshv.tests.utils.commonHeader
import org.onap.dcae.collectors.veshv.tests.utils.vesEventBytes
+import reactor.test.test
import java.nio.charset.Charset
import kotlin.test.assertTrue
import kotlin.test.fail
}
})
-private fun <A> assertFailedWithError(option: Option<A>) =
- option.exists {
+private fun <A> assertFailedWithError(t: Try<A>) =
+ t.exists {
fail("Error expected")
- }
+ }
\ No newline at end of file