Пример #1
0
  @Test
  @Transactional
  public void shouldInsertSatellite() {

    Satellites newSat = getNewSatellite();
    DAO.saveOrUpdate(newSat);
    assertThat(newSat.getId()).isNotEqualTo(0);
  }
Пример #2
0
  private Satellites getNewSatellite() {
    Satellites newSat = new Satellites();
    newSat.setName("Test sat");

    return newSat;
  }