diff options
author | Michal Cmarada <michal.cmarada@pantheon.tech> | 2018-09-25 11:21:09 +0200 |
---|---|---|
committer | Michal Cmarada <mcmarada@cisco.com> | 2018-09-28 12:54:22 +0200 |
commit | 5bbd9feb84660d06fe635a0cd4cbdf45b110665c (patch) | |
tree | 934a3fb9159f832cce5cfbbfd03f9d68c306bf33 /routing/routing-impl/src/test | |
parent | 9b0967210e3e50d0b52475cfc02e636dbfa28421 (diff) |
Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)
Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'routing/routing-impl/src/test')
13 files changed, 34 insertions, 36 deletions
diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java index fa166cb44..052a7f2ec 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java @@ -141,7 +141,7 @@ public interface RoutingRequestTestHelper extends ByteDataTranslator, FutureProd } default Route getIpv4RouteWithId(final StaticRoutes staticRoutes, final Ipv4Prefix id) { - return staticRoutes.getAugmentation(StaticRoutes1.class) + return staticRoutes.augmentation(StaticRoutes1.class) .getIpv4() .getRoute() .stream() @@ -155,13 +155,13 @@ public interface RoutingRequestTestHelper extends ByteDataTranslator, FutureProd .cast(route.getNextHop().getNextHopOptions()) .getNextHopList().getNextHop() .stream() - .filter(nextHop -> Integer.valueOf(nextHop.getKey().getIndex()) == id) + .filter(nextHop -> Integer.valueOf(nextHop.key().getIndex()) == id) .collect(RWUtils.singleItemCollector()); } default org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ipv6.unicast.routing.rev180313.routing.control.plane.protocols.control.plane.protocol._static.routes.ipv6.Route getIpv6RouteWithId( final StaticRoutes staticRoutes, final Ipv6Prefix id) { - return staticRoutes.getAugmentation( + return staticRoutes.augmentation( org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ipv6.unicast.routing.rev180313.StaticRoutes1.class) .getIpv6() .getRoute() diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/ControlPlaneProtocolCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/ControlPlaneProtocolCustomizerTest.java index 43ec73bd1..61338e1e6 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/ControlPlaneProtocolCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/ControlPlaneProtocolCustomizerTest.java @@ -111,7 +111,7 @@ public class ControlPlaneProtocolCustomizerTest getCustomizer().readCurrentAttributes(identifier, builder, ctx); assertEquals(ROUTE_PROTOCOL_NAME, builder.getName()); - assertEquals(ROUTE_PROTOCOL_NAME, builder.getKey().getName()); + assertEquals(ROUTE_PROTOCOL_NAME, builder.key().getName()); assertEquals(Static.class, builder.getType()); } diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java index 0ba1fe576..f64fac7ca 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv4RouteCustomizerTest.java @@ -229,7 +229,7 @@ public class Ipv4RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou assertTrue(hopOptions instanceof SimpleNextHop); SimpleNextHop hop = SimpleNextHop.class.cast(hopOptions); - assertEquals("192.168.2.1", hop.getAugmentation(SimpleNextHop1.class).getNextHopAddress().getValue()); + assertEquals("192.168.2.1", hop.augmentation(SimpleNextHop1.class).getNextHopAddress().getValue()); assertEquals("iface-1", hop.getOutgoingInterface()); } @@ -255,10 +255,10 @@ public class Ipv4RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou private boolean areEqual(final NextHop first, final NextHop second) { return new EqualsBuilder() - .append(true, first.getAugmentation(NextHop1.class).getNextHopAddress().getValue() - .equals(second.getAugmentation(NextHop1.class).getNextHopAddress().getValue())) + .append(true, first.augmentation(NextHop1.class).getNextHopAddress().getValue() + .equals(second.augmentation(NextHop1.class).getNextHopAddress().getValue())) .append(true, first.getIndex().equals(second.getIndex())) - .append(true, first.getKey().equals(second.getKey())) + .append(true, first.key().equals(second.key())) .append(true, first.getOutgoingInterface().equals(second.getOutgoingInterface())) .isEquals(); } @@ -267,7 +267,7 @@ public class Ipv4RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou return new NextHopBuilder() .setOutgoingInterface(iface) .setIndex(id) - .setKey(new NextHopKey(id)) + .withKey(new NextHopKey(id)) .addAugmentation(VppIpv4NextHopAugmentation.class, new VppIpv4NextHopAugmentationBuilder().setWeight((short) weight).build()) .addAugmentation(NextHop1.class, new NextHop1Builder().setNextHopAddress(new Ipv4Address(address)).build()) diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java index fd2844bd6..0b606a54a 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/read/Ipv6RouteCustomizerTest.java @@ -272,7 +272,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou assertTrue(hopOptions instanceof SimpleNextHop); SimpleNextHop hop = SimpleNextHop.class.cast(hopOptions); - assertEquals("2001:db8:a0b:12f0::1", hop.getAugmentation(SimpleNextHop1.class) + assertEquals("2001:db8:a0b:12f0::1", hop.augmentation(SimpleNextHop1.class) .getNextHopAddress().getValue()); assertEquals("iface-1", hop.getOutgoingInterface()); } @@ -289,7 +289,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou assertTrue(hopOptions instanceof SimpleNextHop); SimpleNextHop hop = SimpleNextHop.class.cast(hopOptions); - assertEquals("2001:db8:a0b:12f0::1", hop.getAugmentation(SimpleNextHop1.class) + assertEquals("2001:db8:a0b:12f0::1", hop.augmentation(SimpleNextHop1.class) .getNextHopAddress().getValue()); assertEquals("iface-1", hop.getOutgoingInterface()); } @@ -318,10 +318,10 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou private boolean areEqual(final NextHop first, final NextHop second) { return new EqualsBuilder() - .append(true, first.getAugmentation(NextHop1.class).getNextHopAddress().getValue() - .equals(second.getAugmentation(NextHop1.class).getNextHopAddress().getValue())) + .append(true, first.augmentation(NextHop1.class).getNextHopAddress().getValue() + .equals(second.augmentation(NextHop1.class).getNextHopAddress().getValue())) .append(true, first.getIndex().equals(second.getIndex())) - .append(true, first.getKey().equals(second.getKey())) + .append(true, first.key().equals(second.key())) .append(true, first.getOutgoingInterface().equals(second.getOutgoingInterface())) .isEquals(); } @@ -330,7 +330,7 @@ public class Ipv6RouteCustomizerTest extends ListReaderCustomizerTest<Route, Rou return new NextHopBuilder() .setOutgoingInterface(iface) .setIndex(id) - .setKey(new NextHopKey(id)) + .withKey(new NextHopKey(id)) .addAugmentation(NextHop1.class, new NextHop1Builder().setNextHopAddress(new Ipv6Address(address)).build()) .addAugmentation(VppIpv6NextHopAugmentation.class, new VppIpv6NextHopAugmentationBuilder().setWeight((short) weight).build()) diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/ControlPlaneProtocolCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/ControlPlaneProtocolCustomizerTest.java index 8d49f810d..6cd0e2fd8 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/ControlPlaneProtocolCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/ControlPlaneProtocolCustomizerTest.java @@ -113,10 +113,10 @@ public class ControlPlaneProtocolCustomizerTest extends WriterCustomizerTest { KeyedInstanceIdentifier<Table, TableKey> invalidVrfIidV6 = FibManagementIIds.FM_FIB_TABLES.child(Table.class, invalidKeyV6); when(writeContext.readAfter(vrfIidV4)).thenReturn(Optional.of( - new TableBuilder().setKey(keyV4).setAddressFamily(keyV4.getAddressFamily()) + new TableBuilder().withKey(keyV4).setAddressFamily(keyV4.getAddressFamily()) .setTableId(keyV4.getTableId()).setName("VRF-IPV4-1").build())); when(writeContext.readAfter(vrfIidV6)).thenReturn(Optional.of( - new TableBuilder().setKey(keyV6).setAddressFamily(keyV6.getAddressFamily()) + new TableBuilder().withKey(keyV6).setAddressFamily(keyV6.getAddressFamily()) .setTableId(keyV6.getTableId()).setName("VRF-IPV6-1").build())); when(writeContext.readAfter(invalidVrfIidV4)).thenReturn(Optional.absent()); when(writeContext.readAfter(invalidVrfIidV6)).thenReturn(Optional.absent()); diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv4RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv4RouteCustomizerTest.java index 36e0aed6d..fbf1fd79f 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv4RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv4RouteCustomizerTest.java @@ -63,7 +63,7 @@ public class Ipv4RouteCustomizerTest extends RouteCustomizerTest { SEC_TABLE_ID); private static final Table IPV4_TABLE = new TableBuilder().setName("VRF-IPV4-4") - .setKey(SEC_TABLE_KEY).setTableId(SEC_TABLE_KEY.getTableId()) + .withKey(SEC_TABLE_KEY).setTableId(SEC_TABLE_KEY.getTableId()) .setAddressFamily(SEC_TABLE_KEY.getAddressFamily()).build(); private static final InstanceIdentifier<Route> ROUTE_IID = CONTROL_PROTOCOL_IID @@ -127,7 +127,7 @@ public class Ipv4RouteCustomizerTest extends RouteCustomizerTest { @Test public void testWriteTableLookup() throws WriteFailedException { final Route route = new RouteBuilder() - .setKey(new RouteKey(new Ipv4Prefix("192.168.2.1/24"))) + .withKey(new RouteKey(new Ipv4Prefix("192.168.2.1/24"))) .setDestinationPrefix(new Ipv4Prefix("192.168.2.1/24")) .setNextHop(new NextHopBuilder().setNextHopOptions( new TableLookupCaseBuilder() diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv6RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv6RouteCustomizerTest.java index 0e724b874..77f25c541 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv6RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/Ipv6RouteCustomizerTest.java @@ -57,7 +57,7 @@ public class Ipv6RouteCustomizerTest extends RouteCustomizerTest { SEC_TABLE_ID); private static final Table IPV6_TABLE = new TableBuilder().setName("VRF-IPV6-4") - .setKey(SEC_TABLE_KEY).setTableId(SEC_TABLE_KEY.getTableId()) + .withKey(SEC_TABLE_KEY).setTableId(SEC_TABLE_KEY.getTableId()) .setAddressFamily(SEC_TABLE_KEY.getAddressFamily()).build(); private static final Ipv6Prefix IPV_6_PREFIX = new Ipv6Prefix("2001:0db8:0a0b:12f0:0000:0000:0000:0001/64"); private static final Ipv6Prefix IPV_6_PREFIX_128 = new Ipv6Prefix("2001:0db8:0a0b:12f0:0000:0000:0000:0001/128"); @@ -127,7 +127,7 @@ public class Ipv6RouteCustomizerTest extends RouteCustomizerTest { @Test public void testWriteTableLookup() throws WriteFailedException { final Route route = new RouteBuilder() - .setKey(new RouteKey(IPV_6_PREFIX)) + .withKey(new RouteKey(IPV_6_PREFIX)) .setDestinationPrefix(IPV_6_PREFIX) .setNextHop(new NextHopBuilder().setNextHopOptions(new TableLookupCaseBuilder() .setSecondaryVrf(new VniReference(4L)) diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouteCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouteCustomizerTest.java index ad1613f35..4e4a8822d 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouteCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouteCustomizerTest.java @@ -99,7 +99,7 @@ abstract class RouteCustomizerTest extends WriterCustomizerTest implements Routi whenAddRouteThenSuccess(api); when(writeContext.readAfter(CONTROL_PROTOCOL_IID)).thenReturn(Optional.of(new ControlPlaneProtocolBuilder() - .setKey(CONTROL_PLANE_PROTOCOL_KEY).setName(ROUTE_PROTOCOL_NAME).setType(Static.class) + .withKey(CONTROL_PLANE_PROTOCOL_KEY).setName(ROUTE_PROTOCOL_NAME).setType(Static.class) .addAugmentation(RoutingProtocolVppAttr.class, new RoutingProtocolVppAttrBuilder() .setVppProtocolAttributes(new VppProtocolAttributesBuilder() .setPrimaryVrf(new VniReference(TABLE_ID)) @@ -107,7 +107,7 @@ abstract class RouteCustomizerTest extends WriterCustomizerTest implements Routi .build())); when(writeContext.readAfter(CONTROL_PROTOCOL_INVALID_IID)).thenReturn(Optional.of( - new ControlPlaneProtocolBuilder().setKey(CONTROL_PLANE_PROTOCOL_INVALID_KEY) + new ControlPlaneProtocolBuilder().withKey(CONTROL_PLANE_PROTOCOL_INVALID_KEY) .setName(ROUTE_PROTOCOL_INVALID_NAME).setType(Static.class) .addAugmentation(RoutingProtocolVppAttr.class, new RoutingProtocolVppAttrBuilder() .setVppProtocolAttributes(new VppProtocolAttributesBuilder() @@ -115,10 +115,10 @@ abstract class RouteCustomizerTest extends WriterCustomizerTest implements Routi .build())); when(writeContext.readAfter(TABLE_V4_IID)).thenReturn(Optional.of( - new TableBuilder().setKey(IPV4_TABLE_KEY).setAddressFamily(Ipv4.class) + new TableBuilder().withKey(IPV4_TABLE_KEY).setAddressFamily(Ipv4.class) .setTableId(IPV4_TABLE_KEY.getTableId()).build())); when(writeContext.readAfter(TABLE_V6_IID)).thenReturn(Optional.of( - new TableBuilder().setKey(IPV6_TABLE_KEY).setAddressFamily(Ipv6.class) + new TableBuilder().withKey(IPV6_TABLE_KEY).setAddressFamily(Ipv6.class) .setTableId(IPV6_TABLE_KEY.getTableId()).build())); when(writeContext.readAfter(INVALID_TABLE_V4_IID)).thenReturn(Optional.absent()); when(writeContext.readAfter(INVALID_TABLE_V6_IID)).thenReturn(Optional.absent()); diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouterAdvertisementsCustomizerTest.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouterAdvertisementsCustomizerTest.java index 7e92d1654..1bec72e19 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouterAdvertisementsCustomizerTest.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/RouterAdvertisementsCustomizerTest.java @@ -107,9 +107,9 @@ public class RouterAdvertisementsCustomizerTest extends WriterCustomizerTest imp private static Ipv6RouterAdvertisements getRA(final Interfaces ifc) { return ifc.getInterface() .get(0) - .getAugmentation(Interface1.class) + .augmentation(Interface1.class) .getIpv6() - .getAugmentation(Ipv61.class) + .augmentation(Ipv61.class) .getIpv6RouterAdvertisements(); } } diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv4Test.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv4Test.java index 6457feba2..5f3632b77 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv4Test.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv4Test.java @@ -84,7 +84,7 @@ public class SimpleHopRequestFactoryIpv4Test StaticRoutes ipv4StaticRouteWithoutClassifier) { final IpAddDelRoute request = factory.createIpv4SimpleHopRequest(false, ROUTE_PROTOCOL_NAME, - ipv4StaticRouteWithoutClassifier.getAugmentation(StaticRoutes1.class).getIpv4().getRoute() + ipv4StaticRouteWithoutClassifier.augmentation(StaticRoutes1.class).getIpv4().getRoute() .get(0), mappingContext); assertEquals( @@ -99,7 +99,7 @@ public class SimpleHopRequestFactoryIpv4Test StaticRoutes ipv4StaticRouteWithoutRouteAttrs) { final IpAddDelRoute request = factory.createIpv4SimpleHopRequest(false, ROUTE_PROTOCOL_NAME, - ipv4StaticRouteWithoutRouteAttrs.getAugmentation(StaticRoutes1.class).getIpv4().getRoute() + ipv4StaticRouteWithoutRouteAttrs.augmentation(StaticRoutes1.class).getIpv4().getRoute() .get(0), mappingContext); assertEquals( diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv6Test.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv6Test.java index eadb3995d..f0a2998e3 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv6Test.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SimpleHopRequestFactoryIpv6Test.java @@ -70,7 +70,7 @@ public class SimpleHopRequestFactoryIpv6Test StaticRoutes ipv6StaticRouteWithClassifier) { final IpAddDelRoute request = factory.createIpv6SimpleHopRequest(false, ROUTE_PROTOCOL_NAME, - ipv6StaticRouteWithClassifier.getAugmentation(StaticRoutes1.class).getIpv6().getRoute().get(0), + ipv6StaticRouteWithClassifier.augmentation(StaticRoutes1.class).getIpv6().getRoute().get(0), mappingContext); assertEquals(desiredFlaglessResult(0, 1, 0, Ipv6RouteData.FIRST_ADDRESS_AS_ARRAY, 64, @@ -84,8 +84,7 @@ public class SimpleHopRequestFactoryIpv6Test StaticRoutes ipv6StaticRouteWithoutClassifier) { final IpAddDelRoute request = factory.createIpv6SimpleHopRequest(false, ROUTE_PROTOCOL_NAME, - ipv6StaticRouteWithoutClassifier.getAugmentation(StaticRoutes1.class).getIpv6().getRoute() - .get(0), + ipv6StaticRouteWithoutClassifier.augmentation(StaticRoutes1.class).getIpv6().getRoute().get(0), mappingContext); assertEquals(desiredFlaglessResult(0, 1, 0, Ipv6RouteData.FIRST_ADDRESS_AS_ARRAY, 64, @@ -97,8 +96,7 @@ public class SimpleHopRequestFactoryIpv6Test StaticRoutes ipv6StaticRouteWithoutRouteAttrs) { final IpAddDelRoute request = factory.createIpv6SimpleHopRequest(false, ROUTE_PROTOCOL_NAME, - ipv6StaticRouteWithoutRouteAttrs.getAugmentation(StaticRoutes1.class).getIpv6().getRoute() - .get(0), + ipv6StaticRouteWithoutRouteAttrs.augmentation(StaticRoutes1.class).getIpv6().getRoute().get(0), mappingContext); assertEquals(desiredFlaglessResult(0, 1, 0, Ipv6RouteData.FIRST_ADDRESS_AS_ARRAY, 64, diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv4Test.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv4Test.java index bce1b5167..c8cffa7e5 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv4Test.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv4Test.java @@ -132,7 +132,7 @@ public class SpecialNextHopRequestFactoryIpv4Test } private Route extractSingleRoute(final StaticRoutes staticRoutes, final Ipv4Prefix id) { - return staticRoutes.getAugmentation(StaticRoutes1.class).getIpv4().getRoute().stream() + return staticRoutes.augmentation(StaticRoutes1.class).getIpv4().getRoute().stream() .filter(route -> route.getDestinationPrefix().getValue().equals(id.getValue())) .collect(RWUtils.singleItemCollector()); } diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv6Test.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv6Test.java index 4e0a0efd5..9f435d21b 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv6Test.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/write/factory/SpecialNextHopRequestFactoryIpv6Test.java @@ -131,7 +131,7 @@ public class SpecialNextHopRequestFactoryIpv6Test } private Route extractSingleRoute(final StaticRoutes staticRoutes, final Ipv6Prefix id) { - return staticRoutes.getAugmentation(StaticRoutes1.class).getIpv6().getRoute().stream() + return staticRoutes.augmentation(StaticRoutes1.class).getIpv6().getRoute().stream() .filter(route -> route.getDestinationPrefix().getValue().equals(id.getValue())).collect( RWUtils.singleItemCollector()); } |