use of org.n52.iceland.coding.SupportedTypeRepository in project SOS by 52North.
the class InMemoryCacheImplTest method initInstance.
@Before
public void initInstance() {
// overwrite these methods as these are doing getInstance()-calls
instance = new InMemoryCacheImpl() {
private static final long serialVersionUID = -2571450058666530166L;
@Override
public Set<String> getFeatureOfInterestTypes() {
return Collections.emptySet();
}
@Override
public Set<String> getObservationTypes() {
return Collections.emptySet();
}
};
SupportedTypeRepository supportedTypeRepository = new SupportedTypeRepository();
supportedTypeRepository.init(new DecoderRepository(), new EncoderRepository());
instance.setSupportedTypeRepository(supportedTypeRepository);
}
use of org.n52.iceland.coding.SupportedTypeRepository in project SOS by 52North.
the class SosCacheFeederDAOTest method updateCacheFillsCapabilitiesCache.
@Test
public void updateCacheFillsCapabilitiesCache() throws OwsExceptionReport {
SosWritableContentCache cache = (InMemoryCacheImpl) new InMemoryCacheImpl().setSupportedTypeRepository(new SupportedTypeRepository());
instance.updateCache(cache);
testCacheResult(cache);
}
use of org.n52.iceland.coding.SupportedTypeRepository in project SOS by 52North.
the class CompleteCacheUpdate method execute.
@Override
public void execute() {
try {
SosWritableContentCache cache = (SosWritableContentCache) new InMemoryCacheImpl().setSupportedTypeRepository(supportedTypeRepository);
getCacheFeederDAO().updateCache(cache);
setCache(cache);
} catch (OwsExceptionReport ex) {
fail(ex);
}
}
Aggregations