@@ -0,0 +1,3637 @@
+/*%0A * Copyright 2015 Open Networking Laboratory%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.onosproject.vtnrsc.tenantnetwork;%0A%0Aimport static org.onlab.junit.ImmutableClassChecker.assertThatClassIsImmutable;%0A%0Aimport org.junit.Test;%0Aimport org.onosproject.vtnrsc.DefaultTenantNetwork;%0Aimport org.onosproject.vtnrsc.PhysicalNetwork;%0Aimport org.onosproject.vtnrsc.SegmentationId;%0Aimport org.onosproject.vtnrsc.TenantId;%0Aimport org.onosproject.vtnrsc.TenantNetwork;%0Aimport org.onosproject.vtnrsc.TenantNetworkId;%0A%0Aimport com.google.common.testing.EqualsTester;%0A%0A/**%0A * Unit tests for DefaultNeutronNetwork class.%0A */%0Apublic class DefaultNeutronNetworkTest %7B%0A%0A    private String networkIdStr1 = %22123%22;%0A    private String networkIdStr2 = %22234%22;%0A    private String physicalNetworkStr = %221234%22;%0A    private String tenantIdStr = %22345%22;%0A    private String segmentationIdStr = %221%22;%0A    private String name = %22456%22;%0A%0A    /**%0A     * Checks that the DefaultNeutronNetwork class is immutable.%0A     */%0A    @Test%0A    public void testImmutability() %7B%0A        assertThatClassIsImmutable(DefaultTenantNetwork.class);%0A    %7D%0A%0A    /**%0A     * Checks the operation of equals() methods.%0A     */%0A    @Test%0A    public void testEquality() %7B%0A        TenantNetworkId networkid1 = TenantNetworkId.networkId(networkIdStr1);%0A        TenantNetworkId networkid2 = TenantNetworkId.networkId(networkIdStr2);%0A        PhysicalNetwork physicalNetwork = PhysicalNetwork%0A                .physicalNetwork(physicalNetworkStr);%0A        TenantId tenantId = TenantId.tenantId(tenantIdStr);%0A        SegmentationId segmentationID = SegmentationId%0A                .segmentationId(segmentationIdStr);%0A        TenantNetwork p1 = new DefaultTenantNetwork(networkid1, name, false,%0A                                                    TenantNetwork.State.ACTIVE,%0A                                                    false, tenantId, false,%0A                                                    TenantNetwork.Type.LOCAL,%0A                                                    physicalNetwork,%0A                                                    segmentationID);%0A        TenantNetwork p2 = new DefaultTenantNetwork(networkid1, name, false,%0A                                                    TenantNetwork.State.ACTIVE,%0A                                                    false, tenantId, false,%0A                                                    TenantNetwork.Type.LOCAL,%0A                                                    physicalNetwork,%0A                                                    segmentationID);%0A        TenantNetwork p3 = new DefaultTenantNetwork(networkid2, name, false,%0A                                                    TenantNetwork.State.ACTIVE,%0A                                                    false, tenantId, false,%0A                                                    TenantNetwork.Type.LOCAL,%0A                                                    physicalNetwork,%0A                                                    segmentationID);%0A        new EqualsTester().addEqualityGroup(p1, p2).addEqualityGroup(p3)%0A                .testEquals();%0A    %7D%0A%7D%0A

Add the junit test code of DefaultNeutronNetwork