Пример #1
0
  @Test
  @Transactional
  public void report() {
    PacketEntity packet = factory.createReportPacket();
    packet = PacketEntity.create(packet.getContent(), device);

    packetRepo.persist(packet);
  }
Пример #2
0
  @Test
  @Transactional
  public void test_create() {
    PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device);

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

    assertNotNull(packet.getId());
  }
Пример #3
0
  @Test
  @Transactional
  public void it_should_save_a_packet() {
    PacketEntity packet = PacketEntity.create(factory.createRawDataPacket(), device);

    packetRepo.save(packet);

    assertNotNull(packet.getId());
  }