Rewrite JUnit tests of OlmPowerServiceImplTest 73/104073/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 11 Jan 2023 09:56:34 +0000 (10:56 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 18 Jan 2023 07:23:54 +0000 (08:23 +0100)
commitf2ec2ecbab47ab3df2281ef20408b2a84e549980
tree91bc327c076bd94fa038e399be15cf6b5554ebd1
parentba719cf8857b6adc560297f72489316d47056da4
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