repositoryService.createRepository(repoEntry);
assertNotNull(repositoryService.getConfig().getRepositoryConfiguration(repoEntry.getName()));
// check
RepositoryCheckController controller = null;
try
{
controller = new RepositoryCheckController(repository);
String report = controller.checkAll();
assertFalse(report.contains("NOT consistent"));
}
finally
{
if (controller != null)
{
if (controller.getLastReportPath() != null)
{
File lastReport = new File(controller.getLastReportPath());
if (!lastReport.delete())
{
lastReport.deleteOnExit();
}
}