Search in sources :

Example 1 with Trailer

use of org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Trailer in project camel by apache.

the class BindyComplexKeyValuePairStandaloneTest method init.

@Before
public void init() throws Exception {
    // Set factory
    BindyKeyValuePairDataFormat dataFormat = new BindyKeyValuePairDataFormat(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Order.class);
    factory = dataFormat.getFactory();
    // Set model class
    models.add(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Order.class);
    models.add(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Header.class);
    // f.models.add(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Security.class);
    models.add(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Trailer.class);
    // Init model
    model.put("org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Order", new Order());
    model.put("org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Header", new Header());
    model.put("org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Trailer", new Trailer());
    // set counter = 1
    counter = 1;
}
Also used : Order(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Order) Header(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Header) BindyKeyValuePairDataFormat(org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat) Trailer(org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Trailer) Before(org.junit.Before)

Aggregations

BindyKeyValuePairDataFormat (org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat)1 Header (org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Header)1 Order (org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Order)1 Trailer (org.apache.camel.dataformat.bindy.model.fix.complex.onetomany.Trailer)1 Before (org.junit.Before)1