|
|
@ -987,15 +987,11 @@ abstract public class BaseEdgeTest extends AbstractControllerTest { |
|
|
edgeImitator.sendUplinkMsg(uplinkMsgBuilder.build()); |
|
|
edgeImitator.sendUplinkMsg(uplinkMsgBuilder.build()); |
|
|
edgeImitator.waitForResponses(); |
|
|
edgeImitator.waitForResponses(); |
|
|
|
|
|
|
|
|
AbstractMessage latestMessage = edgeImitator.getLatestMessage(); |
|
|
// TODO: voba - add proper validation once DeviceProcessor
|
|
|
Assert.assertTrue(latestMessage instanceof DeviceUpdateMsg); |
|
|
|
|
|
DeviceUpdateMsg deviceUpdateMsg = (DeviceUpdateMsg) latestMessage; |
|
|
|
|
|
|
|
|
|
|
|
UUID savedDeviceId = new UUID(deviceUpdateMsg.getIdMSB(), deviceUpdateMsg.getIdLSB()); |
|
|
// Device device = doGet("/api/device/" + uuid.toString(), Device.class);
|
|
|
|
|
|
// Assert.assertNotNull(device);
|
|
|
Device device = doGet("/api/device/" + savedDeviceId, Device.class); |
|
|
// Assert.assertEquals("Edge Device 2", device.getName());
|
|
|
Assert.assertNotNull(device); |
|
|
|
|
|
Assert.assertEquals("Edge Device 2", device.getName()); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void sendRelationRequest() throws Exception { |
|
|
private void sendRelationRequest() throws Exception { |
|
|
|