SdxL2ConnectionPoint { public SdxL2ConnectionPoint(String name, ConnectPoint cPoint, List<VlanId> vlans, MacAddress ceMac) { this.name = name; this.cPoint = cPoint; this.vlanIds = vlans; this.ceMac = ceMac; } SdxL2ConnectionPoint(String name, ConnectPoint cPoint, List<VlanId> vlans, MacAddress ceMac); static SdxL2ConnectionPoint sdxl2ConnectionPoint(
            String name, String connectPoint, String vlans, String mac); static SdxL2ConnectionPoint sdxl2ConnectionPoint(
            String name, String connectPoint, String vlans); String name(); ConnectPoint connectPoint(); List<VlanId> vlanIds(); MacAddress macAddress(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testSdxL2ConnectionPoint1() { SdxL2ConnectionPoint scp1 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("RO1", CP1, VLANS1, CEMAC1); new EqualsTester() .addEqualityGroup(scp1) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint2() { SdxL2ConnectionPoint scp2 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("RO2", CP2, VLANS2); new EqualsTester() .addEqualityGroup(scp2) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint3() { SdxL2ConnectionPoint scp3 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("MI1", CP3, VLANS3); new EqualsTester() .addEqualityGroup(scp3) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint4() { SdxL2ConnectionPoint scp4 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("RO3", CP4, VLANS4); new EqualsTester() .addEqualityGroup(scp4) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint5() { exceptionconnectionpoint.expect(IllegalArgumentException.class); exceptionconnectionpoint.expectMessage("Connect point must be in \"deviceUri/portNumber\" format"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("MI2", CP5, VLANS5, CEMAC5); }
@Test public void testSdxL2ConnectionPoint6() { SdxL2ConnectionPoint scp6 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("MI3", CP6, VLANS6, CEMAC6); new EqualsTester() .addEqualityGroup(scp6) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint7() { exceptionmac.expect(IllegalArgumentException.class); exceptionmac.expectMessage("Specified MAC Address must contain"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("RO4", CP7, VLANS7, CEMAC7); }
@Test public void testSdxL2ConnectionPoint8() { SdxL2ConnectionPoint scp8 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("", CP4, VLANS2, CEMAC6); new EqualsTester() .addEqualityGroup(scp8) .addEqualityGroup() .testEquals(); }
@Test public void testSdxL2ConnectionPoint9a() { exceptionname.expect(IllegalStateException.class); exceptionname.expectMessage("Names cannot contain some special characters"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("NA,1", CP1, VLANS1, CEMAC1); }
@Test public void testSdxL2ConnectionPoint9b() { exceptionname.expect(IllegalStateException.class); exceptionname.expectMessage("Names cannot contain some special characters"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("{NA2}", CP2, VLANS2, CEMAC2); }
@Test public void testSdxL2ConnectionPoint9c() { exceptionname.expect(IllegalStateException.class); exceptionname.expectMessage("Names cannot contain some special characters"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("NA3,elementId=50", CP3, VLANS3, CEMAC3); }
@Test public void testSdxL2ConnectionPoint10() { exceptionVlans.expect(NumberFormatException.class); SdxL2ConnectionPoint.sdxl2ConnectionPoint("VE1", CP1, VLANS10, CEMAC7); }
@Test public void testSdxL2ConnectionPoint11() { exceptionVlans.expect(IllegalArgumentException.class); exceptionVlans.expectMessage("value exceeds allowed maximum VLAN ID value (4095)"); SdxL2ConnectionPoint.sdxl2ConnectionPoint("VE2", CP2, VLANS11, CEMAC6); }
@Test public void testSdxL2ConnectionPointEquality() { SdxL2ConnectionPoint scp1 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("FI1", CP1, VLANS1, CEMAC1); SdxL2ConnectionPoint scp2 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("FI1", CP1, VLANS1, CEMAC6); SdxL2ConnectionPoint scp3 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("GE4", CP2, VLANS3, CEMAC6); SdxL2ConnectionPoint scp4 = SdxL2ConnectionPoint.sdxl2ConnectionPoint("GE4", CP2, VLANS8, CEMAC6); new EqualsTester() .addEqualityGroup(scp1, scp2) .addEqualityGroup(scp3) .addEqualityGroup(scp4) .testEquals(); }