public void shouldNotAddBranchParentNotFound()

in component-test/src/main/java/org/apache/fineract/cn/office/TestOffice.java [133:141]


  public void shouldNotAddBranchParentNotFound() throws Exception {
    try {
      final Office branch = OfficeFactory.createRandomOffice();
      this.organizationManager.addBranch(RandomStringUtils.randomAlphanumeric(32), branch);
      Assert.fail();
    } catch (final NotFoundException ex) {
      // do nothing, expected
    }
  }