Closed mattrpav closed 7 years ago
This is done. Example code for reference @gashcrumb:
Code from there:
if (this.cfg.initCfg.addMockJavaCachedTarget) {
console.error("INIT SERVICE MOCK DATA: Adding mock Java cache target document.");
var docDef: DocumentDefinition = this.cfg.addJavaDocument("io.atlasmap.java.test.Name", false);
docDef.initCfg.inspectionResultContents = DocumentManagementService.generateMockJavaDoc();
}
(Note that the inspectionResultsContents var is doc type agnostic, you can specify it on java/xml/json documetns, not just java.)