Remove PCE net. analyzer PceOtnNodeTest useless UT 93/99693/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 08:51:29 +0000 (09:51 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 09:02:44 +0000 (10:02 +0100)
commit0b8195141c5576d8842b075d7c433abe8dabeaa7
tree4c52fd29cf62b3f244c7f40882471d4b69f95d6b
parent2eba7468ae9c134811ead9a96af7a6c1a49a26a1
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