Rewrite JUnit tests of PowerMgmt implementation 88/103988/3
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 10 Jan 2023 09:27:25 +0000 (10:27 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Fri, 13 Jan 2023 07:34:50 +0000 (08:34 +0100)
commit7da038a4d251d77d5ae23f78627edd1b6ffd940a
treecaafdc691577a35cd477e20ac39f279f0d9bcd73
parent1d1ed9547322c81f92d173faacd9427ce6f57bf4
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