Search in sources :

Example 1 with ExampleServiceConfig

use of com.adaptris.interlok.junit.scaffolding.ExampleServiceConfig in project interlok by adaptris.

the class ExampleServiceCase method createExampleXml.

@Override
protected String createExampleXml(Object object) throws Exception {
    String result = getExampleCommentHeader(object);
    Service service = (Service) object;
    if (service.getUniqueId() == null || "".equals(service.getUniqueId())) {
        service.setUniqueId("unique-id");
    }
    ExampleServiceConfig config = new ExampleServiceConfig();
    config.addService(service);
    result = result + configMarshaller.marshal(config);
    return result;
}
Also used : ExampleServiceConfig(com.adaptris.interlok.junit.scaffolding.ExampleServiceConfig) Service(com.adaptris.core.Service)

Aggregations

Service (com.adaptris.core.Service)1 ExampleServiceConfig (com.adaptris.interlok.junit.scaffolding.ExampleServiceConfig)1