Improve callhome-protocol unit tests 92/102292/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Sep 2022 15:50:12 +0000 (17:50 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Sep 2022 16:11:38 +0000 (18:11 +0200)
commit49e258daf22b58545c448bac82716ee6a595768a
tree3dc01d198f443e0f9904fa7e07849f7c4750a18f
parent143edc0cedbe3f3f3f7942546d21549c35089277
Improve callhome-protocol unit tests

Do not mix Mockito references -- just use static imports. Also use
assertThrows() instead of Test(expected).

Change-Id: I3734828f3322665f330f9460042638adfbf7f3f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/callhome-protocol/src/test/java/org/opendaylight/netconf/callhome/protocol/AuthorizedKeysDecoderTest.java
netconf/callhome-protocol/src/test/java/org/opendaylight/netconf/callhome/protocol/CallHomeAuthorizationTest.java
netconf/callhome-protocol/src/test/java/org/opendaylight/netconf/callhome/protocol/CallHomeSessionContextTest.java
netconf/callhome-protocol/src/test/java/org/opendaylight/netconf/callhome/protocol/MinaSshNettyChannelTest.java
netconf/callhome-protocol/src/test/java/org/opendaylight/netconf/callhome/protocol/NetconfCallHomeServerTest.java