Search in sources :

Example 1 with NoAbstractTargetOrderList

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);
}
Also used : NoAbstractTargetOrderList(io.atlasmap.reference.NoAbstractTargetOrderList) AtlasContext(io.atlasmap.api.AtlasContext) File(java.io.File) AtlasSession(io.atlasmap.api.AtlasSession) BaseOrderList(io.atlasmap.java.test.BaseOrderList) AtlasMappingBaseTest(io.atlasmap.reference.AtlasMappingBaseTest) Test(org.junit.Test)

Aggregations

AtlasContext (io.atlasmap.api.AtlasContext)1 AtlasSession (io.atlasmap.api.AtlasSession)1 BaseOrderList (io.atlasmap.java.test.BaseOrderList)1 AtlasMappingBaseTest (io.atlasmap.reference.AtlasMappingBaseTest)1 NoAbstractTargetOrderList (io.atlasmap.reference.NoAbstractTargetOrderList)1 File (java.io.File)1 Test (org.junit.Test)1