Search in sources :

Example 1 with Iso19139GmdEncoder

use of org.n52.svalbard.encode.Iso19139GmdEncoder in project arctic-sea by 52North.

the class Iso19139GmdEncoderTest method setup.

@Before
public void setup() {
    encoder = new Iso19139GmdEncoder();
    encoder.setXmlOptions(XmlOptions::new);
    Iso19139GcoEncoder iso19139GcoEncoder = new Iso19139GcoEncoder();
    iso19139GcoEncoder.setXmlOptions(XmlOptions::new);
    EncoderRepository encoderRepository = new EncoderRepository();
    encoderRepository.setEncoders(Arrays.asList(encoder, iso19139GcoEncoder));
    encoderRepository.init();
    encoderRepository.getEncoders().stream().forEach(e -> ((AbstractDelegatingEncoder<?, ?>) e).setEncoderRepository(encoderRepository));
}
Also used : Iso19139GmdEncoder(org.n52.svalbard.encode.Iso19139GmdEncoder) XmlOptions(org.apache.xmlbeans.XmlOptions) Before(org.junit.Before)

Aggregations

XmlOptions (org.apache.xmlbeans.XmlOptions)1 Before (org.junit.Before)1 Iso19139GmdEncoder (org.n52.svalbard.encode.Iso19139GmdEncoder)1