Updated/fixed the SDN-IP BGP unit tests after some of the BGP-related
code whas changed.
Change-Id: Ie36ad03e3ae7544e7883e2b2aca4c94537750321
diff --git a/apps/sdnip/src/test/java/org/onlab/onos/sdnip/bgp/AsPathTest.java b/apps/sdnip/src/test/java/org/onlab/onos/sdnip/bgp/AsPathTest.java
index fd5a017..fddd895 100644
--- a/apps/sdnip/src/test/java/org/onlab/onos/sdnip/bgp/AsPathTest.java
+++ b/apps/sdnip/src/test/java/org/onlab/onos/sdnip/bgp/AsPathTest.java
@@ -66,8 +66,8 @@
String expectedString =
"AsPath{pathSegments=" +
- "[PathSegment{type=2, segmentAsNumbers=[1, 2, 3]}, " +
- "PathSegment{type=1, segmentAsNumbers=[4, 5, 6]}]}";
+ "[PathSegment{type=AS_SEQUENCE, segmentAsNumbers=[1, 2, 3]}, " +
+ "PathSegment{type=AS_SET, segmentAsNumbers=[4, 5, 6]}]}";
assertThat(asPath.toString(), is(expectedString));
}
@@ -177,8 +177,8 @@
String expectedString =
"AsPath{pathSegments=" +
- "[PathSegment{type=2, segmentAsNumbers=[1, 2, 3]}, " +
- "PathSegment{type=1, segmentAsNumbers=[4, 5, 6]}]}";
+ "[PathSegment{type=AS_SEQUENCE, segmentAsNumbers=[1, 2, 3]}, " +
+ "PathSegment{type=AS_SET, segmentAsNumbers=[4, 5, 6]}]}";
assertThat(asPath.toString(), is(expectedString));
}
}