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));
}
Aggregations