AmsNetId extends ByteValue { public static AmsNetId of(byte... values) { return new AmsNetId(values); } private  AmsNetId(byte... values); static AmsNetId of(byte... values); static AmsNetId of(int octed1, int octed2, int octed3, int octed4, int octed5, int octed6); static AmsNetId of(String address); static AmsNetId of(ByteBuf byteBuf); @Override String toString(); static final Pattern AMS_NET_ID_PATTERN; static final int NUM_BYTES; }
@Test(expected = IllegalArgumentException.class) public void netIdTooShort() { AmsNetId netid = AmsNetId.of("1.2.3.4"); }
@Test(expected = IllegalArgumentException.class) public void netIdStringTooLong() { AmsNetId netid = AmsNetId.of("1.2.3.4.5.6.7.8"); }
@Test(expected = IllegalArgumentException.class) public void netIdStringWrongSeperator() { AmsNetId netid = AmsNetId.of("1:2:3:4:5:6"); }