Exemplo n.º 1
0
  @Test
  @Transactional
  public void report() {
    PacketEntity packet = factory.createReportPacket();
    packet = PacketEntity.create(packet.getContent(), device);

    packetRepo.persist(packet);
  }
Exemplo n.º 2
0
  @Test
  @Transactional
  public void test_create() {
    PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device);

    packetRepo.create(packet, device.getId());

    assertNotNull(packet.getId());
  }
Exemplo n.º 3
0
  @Test
  @Transactional
  public void it_should_save_a_packet() {
    PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device);

    packetRepo.save(packet);

    assertNotNull(packet.getId());
  }