use of org.ehrbase.normalizer.Normalizer in project openEHR_SDK by ehrbase.
the class NormalizerTest method normalize.
@Test
public void normalize() throws IOException, XmlException {
OPERATIONALTEMPLATE template = TemplateDocument.Factory.parse(OperationalTemplateTestData.ALL_TYPES.getStream()).getTemplate();
OptSkeletonBuilder skeletonBuilder = new OptSkeletonBuilder();
RMObject rmObject = skeletonBuilder.generate(template);
Normalizer cut = new Normalizer();
Composition actual = (Composition) cut.normalize(rmObject);
assertThat(actual).isNotNull();
assertThat(actual.getContent()).size().isEqualTo(0);
}
Aggregations