Search in sources :

Example 1 with GetObservationRequestDecoder

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();
}
Also used : TemporalFilterDecoder(org.n52.svalbard.decode.json.TemporalFilterDecoder) GeoJSONDecoder(org.n52.svalbard.decode.json.GeoJSONDecoder) GetObservationRequestDecoder(org.n52.svalbard.decode.json.GetObservationRequestDecoder) SpatialFilterDecoder(org.n52.svalbard.decode.json.SpatialFilterDecoder) DecoderRepository(org.n52.svalbard.decode.DecoderRepository) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DecoderRepository (org.n52.svalbard.decode.DecoderRepository)1 GeoJSONDecoder (org.n52.svalbard.decode.json.GeoJSONDecoder)1 GetObservationRequestDecoder (org.n52.svalbard.decode.json.GetObservationRequestDecoder)1 SpatialFilterDecoder (org.n52.svalbard.decode.json.SpatialFilterDecoder)1 TemporalFilterDecoder (org.n52.svalbard.decode.json.TemporalFilterDecoder)1