Remove PCE net. analyzer PceOtnNodeTest useless UT 81/99781/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 08:51:29 +0000 (09:51 +0100)
committerChristophe Betoule <christophe.betoule@orange.com>
Thu, 17 Feb 2022 08:31:18 +0000 (09:31 +0100)
commit5fe4b817bdf8aa34e921e4ab8341d44cf5809acb
treeb25e3f1e95161f99f44fef274eb0634036a95c77
parentc6c7b5fca2580883621d366573e20eefb9ea06e1
Remove PCE net. analyzer PceOtnNodeTest useless UT

Some Junit tests in PCE network analyzer PceOtnNodeTest are pointless:
-remove these useless UT

The method isPceOtnNodeValid() in PCE network analyzer PceOtnNode was
only used by these UT. There is no need to keep it now:
- remove this method that has become useless
- remove also the method isOtnServiceTypeValid() since it was only used
  by the method isPceOtnNodeValid() now removed
- merge method isNotValid() into isValid() since apart these methods,
  it was the only other place where it was needed

JIRA: TRNSPRTPCE-572
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ida3653117548ad0fbfaa77a74cf1fba184878895
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java
pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNodeTest.java