Rewrite JUnit tests of PowerMgmt implementation 71/104071/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 10 Jan 2023 09:27:25 +0000 (10:27 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 18 Jan 2023 07:23:31 +0000 (08:23 +0100)
commitdbae208bf67142e09ea696a2f30e25575dcb4c7b
tree43a6c2045632008ef359ec3fb0cd97500bed2333
parent8ee860a1fb7186a4dce9b9a0adccdd1a6e4f8f49
Rewrite JUnit tests of PowerMgmt implementation

- Rewrite all the PowerMgmtTest class using mocks instead of
instantiating dependent objects
- adapt OlmPowerServiceRpcImplUtils consequently

JIRA: TRNSPRTPCE-717
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I486988fc4f0abe2b937288570c81a5c24ce3847c
olm/src/main/java/org/opendaylight/transportpce/olm/power/PowerMgmtImpl.java
olm/src/test/java/org/opendaylight/transportpce/olm/power/PowerMgmtTest.java
olm/src/test/java/org/opendaylight/transportpce/olm/util/OlmPowerServiceRpcImplUtil.java