DeviceID { public static DeviceID fromString(String deviceID) throws InvalidDeviceIDException { return new DeviceID(parseDeviceID(deviceID)); } private  DeviceID(long deviceIDAs32BitValue); static DeviceID fromString(String deviceID); static DeviceID fromStringWithBaseID(String offset, DeviceID baseID); static DeviceID fromByteArray(byte[] deviceIDBytes); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); byte[] asByteArray(); DeviceID resolve(DeviceID baseID); static final DeviceID ENOCEAN_BROADCAST_ID; static final int ENOCEAN_ESP_ID_LENGTH; }
@Test (expected = InvalidDeviceIDException.class) public void testOutOfBoundsDeviceID1() throws InvalidDeviceIDException { DeviceID base = DeviceID.fromString("0x1FFFFFFFF"); }
@Test (expected = InvalidDeviceIDException.class) public void testOutOfBoundsDeviceID2() throws InvalidDeviceIDException { DeviceID base = DeviceID.fromString("-1"); }
@Test (expected = InvalidDeviceIDException.class) public void testInvalidEncodingDeviceID() throws Exception { DeviceID base = DeviceID.fromString("0xGG"); }