assertEquals(PortalConfig.class, obj.getClass());
}
public void testNavigationMapping() throws Exception
{
IBindingFactory bfact = BindingDirectory.getFactory(PageNavigation.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
Object obj =
uctx.unmarshalDocument(new FileInputStream("src/test/resources/portal/portal/classic/navigation.xml"), null);
assertEquals(PageNavigation.class, obj.getClass());
IMarshallingContext mctx = bfact.createMarshallingContext();
mctx.setIndent(2);
mctx.marshalDocument(obj, "UTF-8", null, new FileOutputStream("target/navigation.xml"));
obj = uctx.unmarshalDocument(new FileInputStream("target/navigation.xml"), null);
assertEquals(PageNavigation.class, obj.getClass());