Search in sources :

Example 1 with XDataNames

use of com.enonic.xp.schema.xdata.XDataNames in project xp by enonic.

the class XmlContentTypeParserTest method testMixinRefFormats.

@Test
public void testMixinRefFormats() throws Exception {
    parse(this.parser, "-mixins.xml");
    final ContentType result = this.builder.build();
    final XDataNames xDataNames = result.getXData();
    assertEquals(2, xDataNames.getSize());
    assertTrue(xDataNames.contains(XDataName.from("myapplication:metadata1")));
    assertTrue(xDataNames.contains(XDataName.from("myapplication:metadata2")));
}
Also used : ContentType(com.enonic.xp.schema.content.ContentType) XDataNames(com.enonic.xp.schema.xdata.XDataNames) Test(org.junit.jupiter.api.Test)

Aggregations

ContentType (com.enonic.xp.schema.content.ContentType)1 XDataNames (com.enonic.xp.schema.xdata.XDataNames)1 Test (org.junit.jupiter.api.Test)1