public void shouldDeleteBeat()

in component-test/src/main/java/org/apache/fineract/cn/rhythm/TestBeats.java [65:81]


  public void shouldDeleteBeat() throws InterruptedException {
    final String applicationIdentifier = "funnybusiness-v2";

    final Beat beat = createBeatForThisHour(applicationIdentifier, "bebopthedowop");

    testSubject.deleteBeat(applicationIdentifier, beat.getIdentifier());
    Assert.assertTrue(this.eventRecorder.wait(EventConstants.DELETE_BEAT, new BeatEvent(applicationIdentifier, beat.getIdentifier())));

    final List<Beat> allEntities = this.testSubject.getAllBeatsForApplication(applicationIdentifier);
    Assert.assertFalse(allEntities.contains(beat));

    try {
      this.testSubject.getBeat(applicationIdentifier, beat.getIdentifier());
      Assert.fail("NotFoundException should be thrown.");
    }
    catch (final NotFoundException ignored) { }
  }