*
* @throws IOException
*/
@SuppressWarnings("serial")
protected void setUpCatalog() throws IOException {
CatalogWriter writer = new CatalogWriter();
writer.dataStores(new HashMap<String, Map<String, Serializable>>() {
{
put(DATASTORE_NAME, SampleDataAccessFactory.PARAMS);
}
}, new HashMap<String, String>() {
{
put(DATASTORE_NAME, SampleDataAccessData.NAMESPACE_PREFIX);
}
}, Collections.<String> emptySet());
writer.coverageStores(new HashMap<String, Map<String, String>>(),
new HashMap<String, String>(), Collections.<String> emptySet());
writer.namespaces(new HashMap<String, String>() {
{
put(SampleDataAccessData.NAMESPACE_PREFIX, SampleDataAccessData.NAMESPACE_URI);
}
});
writer.styles(Collections.<String, String> emptyMap());
writer.write(new File(data, "catalog.xml"));
}