use of org.n52.svalbard.decode.json.GetObservationRequestDecoder in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method before.
@Before
public void before() {
DecoderRepository decoderRepository = new DecoderRepository();
this.decoder = new GetObservationRequestDecoder();
this.decoder.setDecoderRepository(decoderRepository);
SpatialFilterDecoder spatialFilterDecoder = new SpatialFilterDecoder();
spatialFilterDecoder.setDecoderRepository(decoderRepository);
TemporalFilterDecoder temporalFilterDecoder = new TemporalFilterDecoder();
temporalFilterDecoder.setDecoderRepository(decoderRepository);
GeoJSONDecoder geoJSONDecoder = new GeoJSONDecoder();
geoJSONDecoder.setDecoderRepository(decoderRepository);
decoderRepository.setDecoders(Arrays.asList(decoder, spatialFilterDecoder, temporalFilterDecoder, geoJSONDecoder));
decoderRepository.init();
}
Aggregations