Fix ClassCastExceptions in TopologyProgrammingTest 40/100740/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Apr 2022 16:57:07 +0000 (18:57 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 23 Apr 2022 04:25:25 +0000 (06:25 +0200)
commitc8f084f0fe05ceb8e76477db0e7da241a6d3f266
treeb812f9102809919947e7fb9c98f28c7436d2c757
parent6da89d966bf5238282f9f04267cd672fea5ac2c8
Fix ClassCastExceptions in TopologyProgrammingTest

e000cc610f7b12f91b7df4221c582f96b5d9864c mocked the method returns
using an Optional rather than with an OperationResult, resulting in
CCEs being reported. Fix that up.

Change-Id: Idd724d448bc4237edac7436f41abfd291476088d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 88917629325fe9732751a3f6560b2c86204b71e1)
pcep/topology/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/TopologyProgrammingTest.java