@Test(expected = UnsupportedOperationException.class) public void whenFormatAndTypeMatchShouldRepairRepository() { underTest = new RepairMetadataComponentForTest(repositoryManager, assetEntityAdapter, type, format) { @Override protected void doRepairRepository(final Repository repository) { throw new UnsupportedOperationException(); } }; underTest.repairRepository(repository); }
public void repairRepository(final Repository repository) { if (shouldRepairRepository(repository)) { doRepairRepository(repository); } else { log.info("Not running post processing after repairing {} repository {}", repository.getFormat(), repository.getName()); } }
RepairMetadataComponent extends ComponentSupport { public void repairRepository(final Repository repository) { if (shouldRepairRepository(repository)) { doRepairRepository(repository); } else { log.info("Not running post processing after repairing {} repository {}", repository.getFormat(), repository.getName()); } } }
RepairMetadataComponent extends ComponentSupport { public void repairRepository(final Repository repository) { if (shouldRepairRepository(repository)) { doRepairRepository(repository); } else { log.info("Not running post processing after repairing {} repository {}", repository.getFormat(), repository.getName()); } } RepairMetadataComponent(final RepositoryManager repositoryManager,
                                 final AssetEntityAdapter assetEntityAdapter,
                                 final Type type,
                                 final Format format); }
RepairMetadataComponent extends ComponentSupport { public void repairRepository(final Repository repository) { if (shouldRepairRepository(repository)) { doRepairRepository(repository); } else { log.info("Not running post processing after repairing {} repository {}", repository.getFormat(), repository.getName()); } } RepairMetadataComponent(final RepositoryManager repositoryManager,
                                 final AssetEntityAdapter assetEntityAdapter,
                                 final Type type,
                                 final Format format); void repairRepository(final Repository repository); }
RepairMetadataComponent extends ComponentSupport { public void repairRepository(final Repository repository) { if (shouldRepairRepository(repository)) { doRepairRepository(repository); } else { log.info("Not running post processing after repairing {} repository {}", repository.getFormat(), repository.getName()); } } RepairMetadataComponent(final RepositoryManager repositoryManager,
                                 final AssetEntityAdapter assetEntityAdapter,
                                 final Type type,
                                 final Format format); void repairRepository(final Repository repository);  }