use of com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01.Document in project mule-migration-assistant by mulesoft.
the class TrackingTest method execute.
@Test
public void execute() throws Exception {
Document doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
getElementsFromDocument(doc, tracking.getAppliedTo().getExpression()).forEach(node -> tracking.execute(node, report.getReport()));
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
String xmlString = outputter.outputString(doc);
assertThat(xmlString, isSimilarTo(IOUtils.toString(this.getClass().getClassLoader().getResource(targetPath.toString()).toURI(), UTF_8)).ignoreComments().normalizeWhitespace());
}
use of com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01.Document in project mule-migration-assistant by mulesoft.
the class ForEachScopeTest method executeWithJsonTransFormer.
@Test
public void executeWithJsonTransFormer() throws Exception {
Document doc = getDocument(this.getClass().getClassLoader().getResource(FILE_SAMPLE_PATH.toString()).toURI().getPath());
node = getElementsFromDocument(doc, forEachScope.getAppliedTo().getExpression()).get(0);
forEachScope.execute(node, report.getReport());
Element parent = node.getParentElement();
assertThat("The node didn't change", parent.getChildren(REMOVE_JSON_TRANSFORMER_NAME), is(empty()));
}
use of com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01.Document in project mule-migration-assistant by mulesoft.
the class InvocationPropertiesTest method execute.
@Test
public void execute() throws Exception {
Document doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
getElementsFromDocument(doc, mpt.getAppliedTo().getExpression()).forEach(node -> mpt.execute(node, report.getReport()));
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
String xmlString = outputter.outputString(doc);
assertThat(xmlString, isSimilarTo(IOUtils.toString(this.getClass().getClassLoader().getResource(targetPath.toString()).toURI(), UTF_8)).ignoreComments().normalizeWhitespace());
}
use of com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01.Document in project mule-migration-assistant by mulesoft.
the class MetadataTest method execute.
@Test
public void execute() throws Exception {
Document doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
getElementsFromDocument(doc, setPayload.getAppliedTo().getExpression()).forEach(node -> setPayload.execute(node, report.getReport()));
getElementsFromDocument(doc, dwTransform.getAppliedTo().getExpression()).forEach(node -> dwTransform.execute(node, report.getReport()));
getElementsFromDocument(doc, metadata.getAppliedTo().getExpression()).forEach(node -> metadata.execute(node, report.getReport()));
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
String xmlString = outputter.outputString(doc);
assertThat(xmlString, isSimilarTo(IOUtils.toString(this.getClass().getClassLoader().getResource(targetPath.toString()).toURI(), UTF_8)).ignoreComments().normalizeWhitespace());
}
use of com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01.Document in project mule-migration-assistant by mulesoft.
the class PollTest method execute.
@Test
public void execute() throws Exception {
Document doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
getElementsFromDocument(doc, poll.getAppliedTo().getExpression()).forEach(node -> poll.execute(node, report.getReport()));
getElementsFromDocument(doc, removeSyntheticMigrationAttributes.getAppliedTo().getExpression()).forEach(node -> removeSyntheticMigrationAttributes.execute(node, report.getReport()));
getElementsFromDocument(doc, keepElementsAtBottomOfFlow.getAppliedTo().getExpression()).forEach(node -> keepElementsAtBottomOfFlow.execute(node, report.getReport()));
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
String xmlString = outputter.outputString(doc);
assertThat(xmlString, isSimilarTo(IOUtils.toString(this.getClass().getClassLoader().getResource(targetPath.toString()).toURI(), UTF_8)).ignoreComments().normalizeWhitespace());
}
Aggregations