XMLRepositoryManager xmlRepositoryMgr = new XMLRepositoryManager();
xmlRepositoryMgr.executeWith(new XMLRepositoryManager.RepositoryCommand() {
public void execute(RepositoryConnection repositoryConnection,
XMLRepository repository,
String repositoryDir) throws Exception {
RolloverImageComponent ic =
new RolloverImageComponent("/testRemoveRolloverImageComponent.mrlv");
ic.setNormalImageComponentName("/normal.mimg");
ic.setOverImageComponentName("/over.mimg");
ImageRepositoryManager manager =
new ImageRepositoryManager(repository);
manager.addRolloverImageComponent(repositoryConnection, ic);
containerExists(ic.getName(), false, repositoryConnection,
repository);
manager.removeRolloverImageComponent(repositoryConnection,
ic.getName());
containerExists(ic.getName(), true, repositoryConnection,
repository);
}
});
}