aboutsummaryrefslogtreecommitdiffstats
path: root/hv-collector-ct/src/test/kotlin
diff options
context:
space:
mode:
authorkjaniak <kornel.janiak@nokia.com>2018-07-12 10:57:58 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-08-02 14:47:46 +0200
commit3bdd41724d031c5d787239ce1b4186ac7680d03c (patch)
tree1276e35c4402b9c0d417a7bd7588f180ea688716 /hv-collector-ct/src/test/kotlin
parentece457cd2470f65275b695991bf0bee1e144c24d (diff)
Extract message generator module
Closes ONAP-501 Change-Id: Ia5dc5f67e18c302abbeac7e0373cef479f4befb8 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Issue-ID: DCAEGEN2-601
Diffstat (limited to 'hv-collector-ct/src/test/kotlin')
-rw-r--r--hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/component/PerformanceSpecification.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/component/PerformanceSpecification.kt b/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/component/PerformanceSpecification.kt
index 54a7ea11..b793f3aa 100644
--- a/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/component/PerformanceSpecification.kt
+++ b/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/component/PerformanceSpecification.kt
@@ -26,10 +26,10 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.onap.dcae.collectors.veshv.domain.WireFrameEncoder
-import org.onap.dcae.collectors.veshv.simulators.xnf.config.MessageParameters
-import org.onap.dcae.collectors.veshv.simulators.xnf.createMessageGenerator
import org.onap.dcae.collectors.veshv.tests.fakes.CountingSink
import org.onap.dcae.collectors.veshv.tests.fakes.basicConfiguration
+import org.onap.dcae.collectors.veshv.ves.message.generator.api.MessageGenerator
+import org.onap.dcae.collectors.veshv.ves.message.generator.config.MessageParameters
import reactor.core.publisher.Flux
import reactor.math.sum
import java.security.MessageDigest
@@ -161,7 +161,7 @@ fun dropWhenIndex(predicate: (Long) -> Boolean, stream: Flux<ByteBuf>): Flux<Byt
private fun generateDataStream(alloc: ByteBufAllocator, params: MessageParameters): Flux<ByteBuf> =
WireFrameEncoder(alloc).let { encoder ->
- createMessageGenerator()
+ MessageGenerator.INSTANCE
.createMessageFlux(params)
.map(encoder::encode)
.transform { simulateRemoteTcp(alloc, 1000, it) }