From ff1ce822e44ed6aa0712c2d04232ee2bdd427531 Mon Sep 17 00:00:00 2001 From: kjaniak Date: Tue, 29 May 2018 13:32:14 +0200 Subject: Simulator module addition Change-Id: I8f6e9737954a8769a25450ed22a0285cadfcf164 Issue-ID: DCAEGEN2-601 Signed-off-by: kjaniak --- hv-collector-client-simulator/pom.xml | 105 +++++++++++++++++++++ .../org.onap.dcae.collectors.veshv.main/main.kt | 29 ++++++ .../DummyTest.kt | 34 +++++++ pom.xml | 1 + 4 files changed, 169 insertions(+) create mode 100644 hv-collector-client-simulator/pom.xml create mode 100644 hv-collector-client-simulator/src/main/kotlin/org.onap.dcae.collectors.veshv.main/main.kt create mode 100644 hv-collector-client-simulator/src/test/kotlin/org.onap.dcae.collectors.veshv.main/DummyTest.kt diff --git a/hv-collector-client-simulator/pom.xml b/hv-collector-client-simulator/pom.xml new file mode 100644 index 00000000..11d287c4 --- /dev/null +++ b/hv-collector-client-simulator/pom.xml @@ -0,0 +1,105 @@ + + + + 4.0.0 + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.onap.dcaegen2.collectors.veshv + ves-hv-collector + 1.0.0-SNAPSHOT + .. + + + hv-collector-client-simulator + VES HighVolume Collector :: Client simulator + + + false + + + + + + kotlin-maven-plugin + org.jetbrains.kotlin + + + maven-surefire-plugin + org.apache.maven.plugins + + + + + + + org.slf4j + slf4j-api + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + + + com.nhaarman + mockito-kotlin + + + org.mockito + mockito-core + + + org.assertj + assertj-core + + + org.jetbrains.kotlin + kotlin-test + + + org.jetbrains.spek + spek-api + + + org.jetbrains.spek + spek-junit-platform-engine + + + io.projectreactor + reactor-test + + + ch.qos.logback + logback-classic + test + + + + + \ No newline at end of file diff --git a/hv-collector-client-simulator/src/main/kotlin/org.onap.dcae.collectors.veshv.main/main.kt b/hv-collector-client-simulator/src/main/kotlin/org.onap.dcae.collectors.veshv.main/main.kt new file mode 100644 index 00000000..35710c06 --- /dev/null +++ b/hv-collector-client-simulator/src/main/kotlin/org.onap.dcae.collectors.veshv.main/main.kt @@ -0,0 +1,29 @@ +/* + * ============LICENSE_START======================================================= + * dcaegen2-collectors-veshv + * ================================================================================ + * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.dcae.collectors.veshv.main + +import org.slf4j.LoggerFactory.getLogger + + +private val logger = getLogger("Simulator :: main") + +fun main(args : Array){ + logger.info("Hello world") +} \ No newline at end of file diff --git a/hv-collector-client-simulator/src/test/kotlin/org.onap.dcae.collectors.veshv.main/DummyTest.kt b/hv-collector-client-simulator/src/test/kotlin/org.onap.dcae.collectors.veshv.main/DummyTest.kt new file mode 100644 index 00000000..770adeba --- /dev/null +++ b/hv-collector-client-simulator/src/test/kotlin/org.onap.dcae.collectors.veshv.main/DummyTest.kt @@ -0,0 +1,34 @@ +/* + * ============LICENSE_START======================================================= + * dcaegen2-collectors-veshv + * ================================================================================ + * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.dcae.collectors.veshv.main + +import org.jetbrains.spek.api.Spek +import org.jetbrains.spek.api.dsl.it +import org.jetbrains.spek.api.dsl.on +import kotlin.test.assertEquals + +object DummyTest : Spek({ + on("sum of 2 and 3") { + val sum = 2 + 3 + it("outcome should be equals 5"){ + assertEquals(5, sum) + } + } +}) diff --git a/pom.xml b/pom.xml index db46a4f9..8ef993a0 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,7 @@ hv-collector-utils hv-collector-coverage hv-collector-analysis + hv-collector-client-simulator -- cgit 1.2.3-korg