package com.example.switchyard.switchyard_transformation;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.switchyard.component.test.mixins.cdi.CDIMixIn;
import org.switchyard.test.Invoker;
import org.switchyard.test.ServiceOperation;
import org.switchyard.test.SwitchYardRunner;
import org.switchyard.test.SwitchYardTestCaseConfig;
import org.switchyard.test.SwitchYardTestKit;
import org.switchyard.transform.config.model.TransformSwitchYardScanner;
@SwitchYardTestCaseConfig(
config = SwitchYardTestCaseConfig.SWITCHYARD_XML)
@RunWith(SwitchYardRunner.class)
public class CamelBindyToXstream {
@ServiceOperation("CamelService")
private Invoker camelService;
private SwitchYardTestKit _testKit;
@Test
public void processCSVRecordsToXStream() throws Exception {
String requestTxt = _testKit.readResourceString("input.txt");
camelService.sendInOnly(requestTxt);
}
}