Ray Milkey
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 101 additions and 177 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 */
...@@ -225,4 +221,4 @@ public class BgpNotificationMsgTest { ...@@ -225,4 +221,4 @@ public class BgpNotificationMsgTest {
225 buf.readBytes(testNotificationMsg, 0, iReadLen); 221 buf.readBytes(testNotificationMsg, 0, iReadLen);
226 assertThat(testNotificationMsg, is(notificationMsg)); 222 assertThat(testNotificationMsg, is(notificationMsg));
227 } 223 }
228 -}
...\ No newline at end of file ...\ No newline at end of file
224 +}
......
...@@ -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 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
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 + }
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
...@@ -53,4 +52,4 @@ public class As4PathTest { ...@@ -53,4 +52,4 @@ public class As4PathTest {
53 .addEqualityGroup(attr4) 52 .addEqualityGroup(attr4)
54 .testEquals(); 53 .testEquals();
55 } 54 }
56 -}
...\ No newline at end of file ...\ No newline at end of file
55 +}
......
...@@ -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
...@@ -53,4 +52,4 @@ public class AsPathTest { ...@@ -53,4 +52,4 @@ public class AsPathTest {
53 .addEqualityGroup(attr4) 52 .addEqualityGroup(attr4)
54 .testEquals(); 53 .testEquals();
55 } 54 }
56 -}
...\ No newline at end of file ...\ No newline at end of file
55 +}
......
...@@ -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.
...@@ -37,4 +36,4 @@ public class AutonomousSystemTest { ...@@ -37,4 +36,4 @@ public class AutonomousSystemTest {
37 .addEqualityGroup(tlv2) 36 .addEqualityGroup(tlv2)
38 .testEquals(); 37 .testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -37,4 +36,4 @@ public class BGPLSIdentifierTest { ...@@ -37,4 +36,4 @@ public class BGPLSIdentifierTest {
37 .addEqualityGroup(tlv2) 36 .addEqualityGroup(tlv2)
38 .testEquals(); 37 .testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -38,4 +37,4 @@ public class IPReachabilityInformationTest { ...@@ -38,4 +37,4 @@ public class IPReachabilityInformationTest {
38 .addEqualityGroup(tlv2) 37 .addEqualityGroup(tlv2)
39 .testEquals(); 38 .testEquals();
40 } 39 }
41 -}
...\ No newline at end of file ...\ No newline at end of file
40 +}
......
...@@ -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
...@@ -38,4 +37,4 @@ public class IPv4AddressTest { ...@@ -38,4 +37,4 @@ public class IPv4AddressTest {
38 .addEqualityGroup(tlv2) 37 .addEqualityGroup(tlv2)
39 .testEquals(); 38 .testEquals();
40 } 39 }
41 -}
...\ No newline at end of file ...\ No newline at end of file
40 +}
......
...@@ -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
...@@ -38,4 +37,4 @@ public class IPv6AddressTest { ...@@ -38,4 +37,4 @@ public class IPv6AddressTest {
38 .addEqualityGroup(tlv2) 37 .addEqualityGroup(tlv2)
39 .testEquals(); 38 .testEquals();
40 } 39 }
41 -}
...\ No newline at end of file ...\ No newline at end of file
40 +}
......
...@@ -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
...@@ -37,4 +36,4 @@ public class IsIsPseudonodeTest { ...@@ -37,4 +36,4 @@ public class IsIsPseudonodeTest {
37 .addEqualityGroup(tlv2) 36 .addEqualityGroup(tlv2)
38 .testEquals(); 37 .testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -37,4 +36,4 @@ public class LinkLocalRemoteIdentifiersTest { ...@@ -37,4 +36,4 @@ public class LinkLocalRemoteIdentifiersTest {
37 .addEqualityGroup(tlv2) 36 .addEqualityGroup(tlv2)
38 .testEquals(); 37 .testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -38,4 +37,4 @@ public class NextHopTest { ...@@ -38,4 +37,4 @@ public class NextHopTest {
38 .addEqualityGroup(attr2) 37 .addEqualityGroup(attr2)
39 .testEquals(); 38 .testEquals();
40 } 39 }
41 -}
...\ No newline at end of file ...\ No newline at end of file
40 +}
......
...@@ -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
...@@ -40,4 +39,4 @@ public class OspfPseudonodeTest { ...@@ -40,4 +39,4 @@ public class OspfPseudonodeTest {
40 .addEqualityGroup(tlv2) 39 .addEqualityGroup(tlv2)
41 .testEquals(); 40 .testEquals();
42 } 41 }
43 -}
...\ No newline at end of file ...\ No newline at end of file
42 +}
......
...@@ -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
...@@ -37,4 +36,4 @@ public class OspfRouteTypeTest { ...@@ -37,4 +36,4 @@ public class OspfRouteTypeTest {
37 .addEqualityGroup(tlv2) 36 .addEqualityGroup(tlv2)
38 .testEquals(); 37 .testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -48,4 +47,4 @@ public class BgpAttrNodeFlagBitTlvTest { ...@@ -48,4 +47,4 @@ public class BgpAttrNodeFlagBitTlvTest {
48 new EqualsTester().addEqualityGroup(data, sameAsData) 47 new EqualsTester().addEqualityGroup(data, sameAsData)
49 .addEqualityGroup(diffData).testEquals(); 48 .addEqualityGroup(diffData).testEquals();
50 } 49 }
51 -}
...\ No newline at end of file ...\ No newline at end of file
50 +}
......
...@@ -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
...@@ -47,4 +46,4 @@ public class BgpAttrRouterIdV6Test { ...@@ -47,4 +46,4 @@ public class BgpAttrRouterIdV6Test {
47 new EqualsTester().addEqualityGroup(data, sameAsData) 46 new EqualsTester().addEqualityGroup(data, sameAsData)
48 .addEqualityGroup(diffData).testEquals(); 47 .addEqualityGroup(diffData).testEquals();
49 } 48 }
50 -}
...\ No newline at end of file ...\ No newline at end of file
49 +}
......
...@@ -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
...@@ -41,4 +40,4 @@ public class BgpLinkAttrIgpMetricTest { ...@@ -41,4 +40,4 @@ public class BgpLinkAttrIgpMetricTest {
41 new EqualsTester().addEqualityGroup(data, sameAsData) 40 new EqualsTester().addEqualityGroup(data, sameAsData)
42 .addEqualityGroup(diffData).testEquals(); 41 .addEqualityGroup(diffData).testEquals();
43 } 42 }
44 -}
...\ No newline at end of file ...\ No newline at end of file
43 +}
......
...@@ -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
...@@ -40,4 +39,4 @@ public class BgpLinkAttrMplsProtocolMaskTest { ...@@ -40,4 +39,4 @@ public class BgpLinkAttrMplsProtocolMaskTest {
40 new EqualsTester().addEqualityGroup(data, sameAsData) 39 new EqualsTester().addEqualityGroup(data, sameAsData)
41 .addEqualityGroup(diffData).testEquals(); 40 .addEqualityGroup(diffData).testEquals();
42 } 41 }
43 -}
...\ No newline at end of file ...\ No newline at end of file
42 +}
......
...@@ -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
...@@ -54,4 +53,4 @@ public class BgpLinkAttrProtectionTypeTest { ...@@ -54,4 +53,4 @@ public class BgpLinkAttrProtectionTypeTest {
54 new EqualsTester().addEqualityGroup(data, sameAsData) 53 new EqualsTester().addEqualityGroup(data, sameAsData)
55 .addEqualityGroup(diffData).testEquals(); 54 .addEqualityGroup(diffData).testEquals();
56 } 55 }
57 -}
...\ No newline at end of file ...\ No newline at end of file
56 +}
......
...@@ -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
...@@ -51,4 +50,4 @@ public class BgpPrefixAttrIgpFlagsTest { ...@@ -51,4 +50,4 @@ public class BgpPrefixAttrIgpFlagsTest {
51 new EqualsTester().addEqualityGroup(data, sameAsData) 50 new EqualsTester().addEqualityGroup(data, sameAsData)
52 .addEqualityGroup(diffData).testEquals(); 51 .addEqualityGroup(diffData).testEquals();
53 } 52 }
54 -}
...\ No newline at end of file ...\ No newline at end of file
53 +}
......
...@@ -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
...@@ -37,4 +36,4 @@ public class BgpPrefixAttrMetricTest { ...@@ -37,4 +36,4 @@ public class BgpPrefixAttrMetricTest {
37 new EqualsTester().addEqualityGroup(data, sameAsData) 36 new EqualsTester().addEqualityGroup(data, sameAsData)
38 .addEqualityGroup(diffData).testEquals(); 37 .addEqualityGroup(diffData).testEquals();
39 } 38 }
40 -}
...\ No newline at end of file ...\ No newline at end of file
39 +}
......
...@@ -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
...@@ -49,4 +48,4 @@ public class BgpPrefixAttrOspfFwdAddrTest { ...@@ -49,4 +48,4 @@ public class BgpPrefixAttrOspfFwdAddrTest {
49 new EqualsTester().addEqualityGroup(data, sameAsData) 48 new EqualsTester().addEqualityGroup(data, sameAsData)
50 .addEqualityGroup(diffData).testEquals(); 49 .addEqualityGroup(diffData).testEquals();
51 } 50 }
52 -}
...\ No newline at end of file ...\ No newline at end of file
51 +}
......