@Before
public void prepare()
{
Storage.openStage(nodeRepository, nodeService, config, nodeHandler, null, null);
try
{
country.setSource(source);
nodeRepository.store(country);
state.setSource(source);
nodeRepository.store(state);
city.setSource(source);
nodeRepository.store(city);
district.setSource(source);
nodeRepository.store(district);
region.setSource(source);
nodeRepository.store(region);
category.setSource(source);
nodeRepository.store(category);
media.setSource(source);
nodeRepository.store(media);
recordingNodeRepository.clear();
}
finally
{
Storage.closeStage();
}
}