use of io.atlasmap.reference.NoAbstractTargetOrderList in project atlasmap by atlasmap.
the class JavaJavaComplexListTest method testProcessJavaJavaComplexAutoDetectBaseNoAbstractTest.
@Test
public void testProcessJavaJavaComplexAutoDetectBaseNoAbstractTest() throws Exception {
AtlasContext context = atlasContextFactory.createContext(new File("src/test/resources/javaToJava/atlasmapping-complex-list-autodetect-base-no-abstract.xml"));
AtlasSession session = context.createSession();
BaseOrderList sourceOrderList = AtlasTestUtil.generateOrderListClass(SourceOrderList.class, SourceOrder.class, SourceAddress.class, SourceContact.class);
session.setDefaultSourceDocument(sourceOrderList);
context.process(session);
Object object = session.getDefaultTargetDocument();
assertNotNull(object);
assertTrue(object instanceof NoAbstractTargetOrderList);
AtlasTestUtil.validateOrderList((NoAbstractTargetOrderList) object);
}
Aggregations