### Question:
RepositoryExporter implements IRepositoryExporterFeedback { @Override public List<ExportFeedback> exportAllObjectsWithFeedback( ProgressMonitorListener monitorOuter, String xmlFilename, RepositoryDirectoryInterface root, String exportType ) throws KettleException { return exportAllObjectsInternal( monitorOuter, xmlFilename, root, exportType, true ); } RepositoryExporter( Repository repository ); @Override boolean isRulesViolation(); @Override void setImportRulesToValidate( ImportRules importRules ); @Override List<ExportFeedback> exportAllObjectsWithFeedback( ProgressMonitorListener monitorOuter, String xmlFilename,
      RepositoryDirectoryInterface root, String exportType ); @Override void exportAllObjects( ProgressMonitorListener monitorOuter, String xmlFilename,
      RepositoryDirectoryInterface root, String exportType );  }### Answer:
@Test public void testExportJobsWithFeedback() throws Exception { RepositoryExporter exporter = new RepositoryExporter( repository ); List<ExportFeedback> feedback = exporter.exportAllObjectsWithFeedback( null, xmlFileName, root, RepositoryExporter.ExportType.JOBS.toString() ); Assert.assertEquals( "Feedback contains all items recorded", 2, feedback.size() ); ExportFeedback fb = feedback.get( 1 ); Assert.assertEquals( "Job1 was exproted", "job1", fb.getItemName() ); Assert.assertEquals( "Repository path for Job1 is specified", "path", fb.getItemPath() ); String res = this.validateXmlFile( fileObject.getContent().getInputStream(), " Assert.assertEquals( "Export xml contains exported job xml", "found", res ); }
@Test public void testExportTransformationsWithFeedback() throws Exception { RepositoryExporter exporter = new RepositoryExporter( repository ); List<ExportFeedback> feedback = exporter.exportAllObjectsWithFeedback( null, xmlFileName, root, RepositoryExporter.ExportType.TRANS.toString() ); Assert.assertEquals( "Feedback contains all items recorded", 2, feedback.size() ); ExportFeedback fb = feedback.get( 1 ); Assert.assertEquals( "Job1 was exproted", "trans1", fb.getItemName() ); Assert.assertEquals( "Repository path for Job1 is specified", "path", fb.getItemPath() ); String res = this.validateXmlFile( fileObject.getContent().getInputStream(), " Assert.assertEquals( "Export xml contains exported job xml", "found", res ); }