use of me.retrodaredevil.solarthing.commands.packets.status.AvailableCommandsPacket in project solarthing by wildmountainfarms.
the class CommandStatusPacketTest method test.
@Test
void test() throws JsonProcessingException {
AvailableCommandsPacket packet = new ImmutableAvailableCommandsPacket(Collections.singletonList(new CommandInfo("asdf", "Asdf", "Cool")));
assertEquals("asdf", packet.getCommandInfoList().get(0).getName());
assertEquals(1, packet.getCommandInfoList().size());
PacketTestUtil.testJson(packet, AvailableCommandsPacket.class);
PacketTestUtil.testJson(packet, CommandStatusPacket.class);
}
Aggregations