Committed by
Gerrit Code Review
Move unit tests to a directory structure that follows the classes under test
Change-Id: Ibfa840e4aab4100125b4ead0f864f5ad1bea18b6
Showing
27 changed files
with
79 additions
and
155 deletions
| 1 | -/* | ||
| 2 | - * Copyright 2014-2015 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | - * you may not use this file except in compliance with the License. | ||
| 6 | - * You may obtain a copy of the License at | ||
| 7 | - * | ||
| 8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | - * | ||
| 10 | - * Unless required by applicable law or agreed to in writing, software | ||
| 11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | - * See the License for the specific language governing permissions and | ||
| 14 | - * limitations under the License. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.bgp; | ||
| 17 | - | ||
| 18 | -import org.junit.Test; | ||
| 19 | -import org.onosproject.bgpio.types.IsIsNonPseudonode; | ||
| 20 | - | ||
| 21 | -import com.google.common.testing.EqualsTester; | ||
| 22 | - | ||
| 23 | -/** | ||
| 24 | - * Test for IsIsNonPseudonode Tlv. | ||
| 25 | - */ | ||
| 26 | -public class IsIsNonPseudonodeTest { | ||
| 27 | - private final byte[] value1 = new byte[] {0x19, 0x00, (byte) 0x95, 0x01, (byte) 0x90, 0x58}; | ||
| 28 | - private final byte[] value2 = new byte[] {0x19, 0x00, (byte) 0x95, 0x01, (byte) 0x90, 0x59}; | ||
| 29 | - private final IsIsNonPseudonode tlv1 = IsIsNonPseudonode.of(value1); | ||
| 30 | - private final IsIsNonPseudonode sameAsTlv1 = IsIsNonPseudonode.of(value1); | ||
| 31 | - private final IsIsNonPseudonode tlv2 = IsIsNonPseudonode.of(value2); | ||
| 32 | - | ||
| 33 | - @Test | ||
| 34 | - public void basics() { | ||
| 35 | - new EqualsTester() | ||
| 36 | - .addEqualityGroup(tlv1, sameAsTlv1) | ||
| 37 | - .addEqualityGroup(tlv2) | ||
| 38 | - .testEquals(); | ||
| 39 | - } | ||
| 40 | -} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | -/* | ||
| 2 | - * Copyright 2014-2015 Open Networking Laboratory | ||
| 3 | - * | ||
| 4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | - * you may not use this file except in compliance with the License. | ||
| 6 | - * You may obtain a copy of the License at | ||
| 7 | - * | ||
| 8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | - * | ||
| 10 | - * Unless required by applicable law or agreed to in writing, software | ||
| 11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | - * See the License for the specific language governing permissions and | ||
| 14 | - * limitations under the License. | ||
| 15 | - */ | ||
| 16 | -package org.onosproject.bgp; | ||
| 17 | - | ||
| 18 | -import org.junit.Test; | ||
| 19 | -import org.onosproject.bgpio.types.OSPFNonPseudonode; | ||
| 20 | - | ||
| 21 | -import com.google.common.testing.EqualsTester; | ||
| 22 | - | ||
| 23 | -/** | ||
| 24 | - * Test for OSPFNonPseudonode Tlv. | ||
| 25 | - */ | ||
| 26 | -public class OspfNonPseudonodeTest { | ||
| 27 | - private final int value1 = 0x12121212; | ||
| 28 | - private final int value2 = 0x12121211; | ||
| 29 | - private final OSPFNonPseudonode tlv1 = OSPFNonPseudonode.of(value1); | ||
| 30 | - private final OSPFNonPseudonode sameAsTlv1 = OSPFNonPseudonode.of(value1); | ||
| 31 | - private final OSPFNonPseudonode tlv2 = OSPFNonPseudonode.of(value2); | ||
| 32 | - | ||
| 33 | - @Test | ||
| 34 | - public void basics() { | ||
| 35 | - new EqualsTester() | ||
| 36 | - .addEqualityGroup(tlv1, sameAsTlv1) | ||
| 37 | - .addEqualityGroup(tlv2) | ||
| 38 | - .testEquals(); | ||
| 39 | - } | ||
| 40 | -} |
| ... | @@ -13,22 +13,18 @@ | ... | @@ -13,22 +13,18 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.protocol; |
| 17 | - | ||
| 18 | -import static org.hamcrest.MatcherAssert.assertThat; | ||
| 19 | -import static org.hamcrest.Matchers.instanceOf; | ||
| 20 | -import static org.hamcrest.core.Is.is; | ||
| 21 | 17 | ||
| 22 | import org.jboss.netty.buffer.ChannelBuffer; | 18 | import org.jboss.netty.buffer.ChannelBuffer; |
| 23 | import org.jboss.netty.buffer.ChannelBuffers; | 19 | import org.jboss.netty.buffer.ChannelBuffers; |
| 24 | import org.junit.Test; | 20 | import org.junit.Test; |
| 25 | import org.onosproject.bgpio.exceptions.BGPParseException; | 21 | import org.onosproject.bgpio.exceptions.BGPParseException; |
| 26 | -import org.onosproject.bgpio.protocol.BGPFactories; | ||
| 27 | -import org.onosproject.bgpio.protocol.BGPKeepaliveMsg; | ||
| 28 | -import org.onosproject.bgpio.protocol.BGPMessage; | ||
| 29 | -import org.onosproject.bgpio.protocol.BGPMessageReader; | ||
| 30 | import org.onosproject.bgpio.types.BGPHeader; | 22 | import org.onosproject.bgpio.types.BGPHeader; |
| 31 | 23 | ||
| 24 | +import static org.hamcrest.MatcherAssert.assertThat; | ||
| 25 | +import static org.hamcrest.Matchers.instanceOf; | ||
| 26 | +import static org.hamcrest.core.Is.is; | ||
| 27 | + | ||
| 32 | /** | 28 | /** |
| 33 | * Test case for BGP KEEPALIVE Message. | 29 | * Test case for BGP KEEPALIVE Message. |
| 34 | */ | 30 | */ | ... | ... |
| ... | @@ -13,22 +13,18 @@ | ... | @@ -13,22 +13,18 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.protocol; |
| 17 | - | ||
| 18 | -import static org.hamcrest.MatcherAssert.assertThat; | ||
| 19 | -import static org.hamcrest.Matchers.instanceOf; | ||
| 20 | -import static org.hamcrest.core.Is.is; | ||
| 21 | 17 | ||
| 22 | import org.jboss.netty.buffer.ChannelBuffer; | 18 | import org.jboss.netty.buffer.ChannelBuffer; |
| 23 | import org.jboss.netty.buffer.ChannelBuffers; | 19 | import org.jboss.netty.buffer.ChannelBuffers; |
| 24 | import org.junit.Test; | 20 | import org.junit.Test; |
| 25 | import org.onosproject.bgpio.exceptions.BGPParseException; | 21 | import org.onosproject.bgpio.exceptions.BGPParseException; |
| 26 | -import org.onosproject.bgpio.protocol.BGPFactories; | ||
| 27 | -import org.onosproject.bgpio.protocol.BGPMessage; | ||
| 28 | -import org.onosproject.bgpio.protocol.BGPMessageReader; | ||
| 29 | -import org.onosproject.bgpio.protocol.BGPOpenMsg; | ||
| 30 | import org.onosproject.bgpio.types.BGPHeader; | 22 | import org.onosproject.bgpio.types.BGPHeader; |
| 31 | 23 | ||
| 24 | +import static org.hamcrest.MatcherAssert.assertThat; | ||
| 25 | +import static org.hamcrest.Matchers.instanceOf; | ||
| 26 | +import static org.hamcrest.core.Is.is; | ||
| 27 | + | ||
| 32 | /** | 28 | /** |
| 33 | * Test cases for BGP Open Message. | 29 | * Test cases for BGP Open Message. |
| 34 | */ | 30 | */ | ... | ... |
| ... | @@ -13,22 +13,18 @@ | ... | @@ -13,22 +13,18 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.protocol; |
| 17 | - | ||
| 18 | -import static org.hamcrest.MatcherAssert.assertThat; | ||
| 19 | -import static org.hamcrest.Matchers.instanceOf; | ||
| 20 | -import static org.hamcrest.core.Is.is; | ||
| 21 | 17 | ||
| 22 | import org.jboss.netty.buffer.ChannelBuffer; | 18 | import org.jboss.netty.buffer.ChannelBuffer; |
| 23 | import org.jboss.netty.buffer.ChannelBuffers; | 19 | import org.jboss.netty.buffer.ChannelBuffers; |
| 24 | import org.junit.Test; | 20 | import org.junit.Test; |
| 25 | import org.onosproject.bgpio.exceptions.BGPParseException; | 21 | import org.onosproject.bgpio.exceptions.BGPParseException; |
| 26 | -import org.onosproject.bgpio.protocol.BGPFactories; | ||
| 27 | -import org.onosproject.bgpio.protocol.BGPMessage; | ||
| 28 | -import org.onosproject.bgpio.protocol.BGPMessageReader; | ||
| 29 | -import org.onosproject.bgpio.protocol.BGPNotificationMsg; | ||
| 30 | import org.onosproject.bgpio.types.BGPHeader; | 22 | import org.onosproject.bgpio.types.BGPHeader; |
| 31 | 23 | ||
| 24 | +import static org.hamcrest.MatcherAssert.assertThat; | ||
| 25 | +import static org.hamcrest.Matchers.instanceOf; | ||
| 26 | +import static org.hamcrest.core.Is.is; | ||
| 27 | + | ||
| 32 | /** | 28 | /** |
| 33 | * Test for Notification message. | 29 | * Test for Notification message. |
| 34 | */ | 30 | */ | ... | ... |
| ... | @@ -13,12 +13,11 @@ | ... | @@ -13,12 +13,11 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | - | ||
| 18 | -import com.google.common.testing.EqualsTester; | ||
| 19 | 17 | ||
| 20 | import org.junit.Test; | 18 | import org.junit.Test; |
| 21 | -import org.onosproject.bgpio.types.AreaIDTlv; | 19 | + |
| 20 | +import com.google.common.testing.EqualsTester; | ||
| 22 | 21 | ||
| 23 | /** | 22 | /** |
| 24 | * Test for AreaID Tlv. | 23 | * Test for AreaID Tlv. |
| ... | @@ -37,4 +36,42 @@ public class AreaIdTest { | ... | @@ -37,4 +36,42 @@ public class AreaIdTest { |
| 37 | .addEqualityGroup(tlv2) | 36 | .addEqualityGroup(tlv2) |
| 38 | .testEquals(); | 37 | .testEquals(); |
| 39 | } | 38 | } |
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * Test for OSPFNonPseudonode Tlv. | ||
| 42 | + */ | ||
| 43 | + public static class OspfNonPseudonodeTest { | ||
| 44 | + private final int value1 = 0x12121212; | ||
| 45 | + private final int value2 = 0x12121211; | ||
| 46 | + private final OSPFNonPseudonode tlv1 = OSPFNonPseudonode.of(value1); | ||
| 47 | + private final OSPFNonPseudonode sameAsTlv1 = OSPFNonPseudonode.of(value1); | ||
| 48 | + private final OSPFNonPseudonode tlv2 = OSPFNonPseudonode.of(value2); | ||
| 49 | + | ||
| 50 | + @Test | ||
| 51 | + public void basics() { | ||
| 52 | + new EqualsTester() | ||
| 53 | + .addEqualityGroup(tlv1, sameAsTlv1) | ||
| 54 | + .addEqualityGroup(tlv2) | ||
| 55 | + .testEquals(); | ||
| 56 | + } | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + /** | ||
| 60 | + * Test for IsIsNonPseudonode Tlv. | ||
| 61 | + */ | ||
| 62 | + public static class IsIsNonPseudonodeTest { | ||
| 63 | + private final byte[] value1 = new byte[] {0x19, 0x00, (byte) 0x95, 0x01, (byte) 0x90, 0x58}; | ||
| 64 | + private final byte[] value2 = new byte[] {0x19, 0x00, (byte) 0x95, 0x01, (byte) 0x90, 0x59}; | ||
| 65 | + private final IsIsNonPseudonode tlv1 = IsIsNonPseudonode.of(value1); | ||
| 66 | + private final IsIsNonPseudonode sameAsTlv1 = IsIsNonPseudonode.of(value1); | ||
| 67 | + private final IsIsNonPseudonode tlv2 = IsIsNonPseudonode.of(value2); | ||
| 68 | + | ||
| 69 | + @Test | ||
| 70 | + public void basics() { | ||
| 71 | + new EqualsTester() | ||
| 72 | + .addEqualityGroup(tlv1, sameAsTlv1) | ||
| 73 | + .addEqualityGroup(tlv2) | ||
| 74 | + .testEquals(); | ||
| 75 | + } | ||
| 76 | + } | ||
| 40 | } | 77 | } | ... | ... |
| ... | @@ -13,13 +13,12 @@ | ... | @@ -13,13 +13,12 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import java.util.ArrayList; | 18 | import java.util.ArrayList; |
| 19 | import java.util.List; | 19 | import java.util.List; |
| 20 | 20 | ||
| 21 | import org.junit.Test; | 21 | import org.junit.Test; |
| 22 | -import org.onosproject.bgpio.types.As4Path; | ||
| 23 | 22 | ||
| 24 | import com.google.common.testing.EqualsTester; | 23 | import com.google.common.testing.EqualsTester; |
| 25 | 24 | ... | ... |
| ... | @@ -13,13 +13,12 @@ | ... | @@ -13,13 +13,12 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import java.util.ArrayList; | 18 | import java.util.ArrayList; |
| 19 | import java.util.List; | 19 | import java.util.List; |
| 20 | 20 | ||
| 21 | import org.junit.Test; | 21 | import org.junit.Test; |
| 22 | -import org.onosproject.bgpio.types.AsPath; | ||
| 23 | 22 | ||
| 24 | import com.google.common.testing.EqualsTester; | 23 | import com.google.common.testing.EqualsTester; |
| 25 | 24 | ... | ... |
| ... | @@ -13,12 +13,11 @@ | ... | @@ -13,12 +13,11 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | - | ||
| 18 | -import com.google.common.testing.EqualsTester; | ||
| 19 | 17 | ||
| 20 | import org.junit.Test; | 18 | import org.junit.Test; |
| 21 | -import org.onosproject.bgpio.types.AutonomousSystemTlv; | 19 | + |
| 20 | +import com.google.common.testing.EqualsTester; | ||
| 22 | 21 | ||
| 23 | /** | 22 | /** |
| 24 | * Test for AutonomousSystem Tlv. | 23 | * Test for AutonomousSystem Tlv. | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.BGPLSIdentifierTlv; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.IPReachabilityInformationTlv; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,11 +13,10 @@ | ... | @@ -13,11 +13,10 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip4Address; | 19 | import org.onlab.packet.Ip4Address; |
| 20 | -import org.onosproject.bgpio.types.IPv4AddressTlv; | ||
| 21 | 20 | ||
| 22 | import com.google.common.testing.EqualsTester; | 21 | import com.google.common.testing.EqualsTester; |
| 23 | 22 | ... | ... |
| ... | @@ -13,11 +13,10 @@ | ... | @@ -13,11 +13,10 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip6Address; | 19 | import org.onlab.packet.Ip6Address; |
| 20 | -import org.onosproject.bgpio.types.IPv6AddressTlv; | ||
| 21 | 20 | ||
| 22 | import com.google.common.testing.EqualsTester; | 21 | import com.google.common.testing.EqualsTester; |
| 23 | 22 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.IsIsPseudonode; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.LinkLocalRemoteIdentifiersTlv; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,11 +13,10 @@ | ... | @@ -13,11 +13,10 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip4Address; | 19 | import org.onlab.packet.Ip4Address; |
| 20 | -import org.onosproject.bgpio.types.NextHop; | ||
| 21 | 20 | ||
| 22 | import com.google.common.testing.EqualsTester; | 21 | import com.google.common.testing.EqualsTester; |
| 23 | 22 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.Origin; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,11 +13,10 @@ | ... | @@ -13,11 +13,10 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip4Address; | 19 | import org.onlab.packet.Ip4Address; |
| 20 | -import org.onosproject.bgpio.types.OSPFPseudonode; | ||
| 21 | 20 | ||
| 22 | import com.google.common.testing.EqualsTester; | 21 | import com.google.common.testing.EqualsTester; |
| 23 | 22 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.OSPFRouteTypeTlv; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpAttrNodeFlagBitTlv; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,11 +13,10 @@ | ... | @@ -13,11 +13,10 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip6Address; | 19 | import org.onlab.packet.Ip6Address; |
| 20 | -import org.onosproject.bgpio.types.attr.BgpAttrRouterIdV6; | ||
| 21 | 20 | ||
| 22 | import com.google.common.testing.EqualsTester; | 21 | import com.google.common.testing.EqualsTester; |
| 23 | 22 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpLinkAttrIgpMetric; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpLinkAttrMplsProtocolMask; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpLinkAttrProtectionType; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpPrefixAttrIgpFlags; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,10 +13,9 @@ | ... | @@ -13,10 +13,9 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | -import org.onosproject.bgpio.types.attr.BgpPrefixAttrMetric; | ||
| 20 | 19 | ||
| 21 | import com.google.common.testing.EqualsTester; | 20 | import com.google.common.testing.EqualsTester; |
| 22 | 21 | ... | ... |
| ... | @@ -13,12 +13,11 @@ | ... | @@ -13,12 +13,11 @@ |
| 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. | 14 | * limitations under the License. |
| 15 | */ | 15 | */ |
| 16 | -package org.onosproject.bgp; | 16 | +package org.onosproject.bgpio.types.attr; |
| 17 | 17 | ||
| 18 | import org.junit.Test; | 18 | import org.junit.Test; |
| 19 | import org.onlab.packet.Ip4Address; | 19 | import org.onlab.packet.Ip4Address; |
| 20 | import org.onlab.packet.Ip6Address; | 20 | import org.onlab.packet.Ip6Address; |
| 21 | -import org.onosproject.bgpio.types.attr.BgpPrefixAttrOspfFwdAddr; | ||
| 22 | 21 | ||
| 23 | import com.google.common.testing.EqualsTester; | 22 | import com.google.common.testing.EqualsTester; |
| 24 | 23 | ... | ... |
-
Please register or login to post a comment