Rewrite JUnit tests of OlmPowerServiceImplTest 89/103989/3
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 11 Jan 2023 09:56:34 +0000 (10:56 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Fri, 13 Jan 2023 07:43:37 +0000 (08:43 +0100)
commiteba446cc9a2ff4824948b8d28597ec0c34f5e138
tree51cc1e02dbceb3176358a16510136dd47e17834b
parente963b9d2894d1b3aa80740f973b118ec30323fba
Rewrite JUnit tests of OlmPowerServiceImplTest

- rewrite all the test class using mocks instead of instantiating
dependent objects
- remove all tests related to spanloss calculation mehtods since these
tests already exist in the dedicated OlmPowerServiceImplSpanLossBaseTest
class
- remove needless methods in OlmPowerServiceTpcImplUtil class

JIRA: TRNSPRTPCE-717
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ice175c9cf588ae762db0726246ad82d6331b00c0
olm/src/test/java/org/opendaylight/transportpce/olm/service/OlmPowerServiceImplTest.java
olm/src/test/java/org/opendaylight/transportpce/olm/util/OlmPowerServiceRpcImplUtil.java