// :XF00DN; public void testTwo() { CanMessage m = new CanMessage(0xF00D); m.setExtended(true); m.setRtr(false); m.setNumDataElements(0); GridConnectMessage g = new GridConnectMessage(m); Assert.assertEquals("standard format 2 byte", ":X0000F00DN;", g.toString()); }
public void testThree() { CanMessage m = new CanMessage(0x123); m.setExtended(true); m.setRtr(true); m.setNumDataElements(4); m.setElement(0, 0x12); m.setElement(1, 0x34); m.setElement(2, 0x56); m.setElement(3, 0x78); GridConnectMessage g = new GridConnectMessage(m); Assert.assertEquals("standard format 2 byte", ":X00000123R12345678;", g.toString()); }