@Test @Transactional public void report() { PacketEntity packet = factory.createReportPacket(); packet = PacketEntity.create(packet.getContent(), device); packetRepo.persist(packet); }
@Test @Transactional public void test_create() { PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device); packetRepo.create(packet, device.getId()); assertNotNull(packet.getId()); }
@Test @Transactional public void it_should_save_a_packet() { PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device); packetRepo.save(packet); assertNotNull(packet.getId()); }