public void shouldCreateSample()

in component-test/src/main/java/org/apache/fineract/cn/template/TestSample.java [120:129]


  public void shouldCreateSample() throws InterruptedException {
    logger.info("Running test shouldCreateSample.");
    final Sample sample = Sample.create(RandomStringUtils.randomAlphanumeric(8), RandomStringUtils.randomAlphanumeric(512));
    this.testSubject.createEntity(sample);

    Assert.assertTrue(this.eventRecorder.wait(EventConstants.POST_SAMPLE, sample.getIdentifier()));

    final Sample createdSample = this.testSubject.getEntity(sample.getIdentifier());
    Assert.assertEquals(sample, createdSample);
  }