Source:
<code><START> private void checkImportedModel(){ <END> RelationalModelEditor editor = new RelationalModelEditor(NAME_SOURCE_MODEL + ".xmi"); editor.close(); new ModelExplorer().openModelEditor(WORK_PROJECT_NAME, NAME_SOURCE_MODEL + ".xmi"); editor = new RelationalModelEditor(NAME_SOURCE_MODEL + ".xmi"); TableEditor tableEditor = editor.openTableEditor(); tableEditor.openTab(TableEditor.Tabs.PROCEDURES); collector.checkThat("Procedure name in source is badly set", tableEditor.getCellText(1,"myProcedure", "Name In Source"), is("myProcedureSource")); collector.checkThat("Update count is badly set",tableEditor.getCellText(1,"myProcedure", "Update Count"), is("ONE")); collector.checkThat("Table description is missing", tableEditor.getCellText(1,"myProcedure", "Description"), is("procedure description")); tableEditor.openTab(TableEditor.Tabs.PROCEDURE_RESULTS); collector.checkThat("Procedure result is set wrongly", tableEditor.getCellText(0,"myProcedure", "Name"), is("myProcedure")); tableEditor.openTab(TableEditor.Tabs.PROCEDURE_PARAMETERS); collector.checkThat("Procedure parameter direction is set wrongly", tableEditor.getCellText(0,"myProcedure", "Direction"), is("IN")); collector.checkThat("Procedure parameter datatype is set wrongly", tableEditor.getCellText(0,"myProcedure", "Datatype"), is("string")); collector.checkThat("Procedure parameter length is set wrongly", tableEditor.getCellText(0,"myProcedure", "Length"), is("4000")); ProblemsView problemsView = new ProblemsView(); collector.checkThat("Errors in imported source model", problemsView.getProblems(ProblemType.ERROR, new ProblemsResourceMatcher(NAME_SOURCE_MODEL + ".xmi")), empty()); collector.checkThat("Errors in imported VDB", problemsView.getProblems(ProblemType.ERROR, new ProblemsResourceMatcher(NAME_VDB + ".vdb")), empty()); }</code><technical_language>This method a copy of SourceForeignKey.checkImportedModel()</technical_language>

Target:
private void checkImportedModel(){ RelationalModelEditor editor = new RelationalModelEditor(NAME_SOURCE_MODEL + ".xmi"); editor.close(); new ModelExplorer().openModelEditor(WORK_PROJECT_NAME, NAME_SOURCE_MODEL + ".xmi"); editor = new RelationalModelEditor(NAME_SOURCE_MODEL + ".xmi"); TableEditor tableEditor = editor.openTableEditor(); tableEditor.openTab(TableEditor.Tabs.PROCEDURES); collector.checkThat("Procedure name in source is badly set", tableEditor.getCellText(1,"myProcedure", "Name In Source"), is("myProcedureSource")); if (new JiraClient().isIssueClosed("TEIIDDES-2985")){ collector.checkThat("Update count is badly set",tableEditor.getCellText(1,"myProcedure", "Update Count"), is("ONE")); } collector.checkThat("Table description is missing", tableEditor.getCellText(1,"myProcedure", "Description"), is("procedure description")); tableEditor.openTab(TableEditor.Tabs.PROCEDURE_RESULTS); collector.checkThat("Procedure result is set wrongly", tableEditor.getCellText(0,"myProcedure", "Name"), is("myProcedure")); tableEditor.openTab(TableEditor.Tabs.PROCEDURE_PARAMETERS); collector.checkThat("Procedure parameter direction is set wrongly", tableEditor.getCellText(0,"myProcedure", "Direction"), is("IN")); collector.checkThat("Procedure parameter datatype is set wrongly", tableEditor.getCellText(0,"myProcedure", "Datatype"), is("string")); collector.checkThat("Procedure parameter length is set wrongly", tableEditor.getCellText(0,"myProcedure", "Length"), is("4000")); ProblemsView problemsView = new ProblemsView(); collector.checkThat("Errors in imported source model", problemsView.getProblems(ProblemType.ERROR, new ProblemsResourceMatcher(NAME_SOURCE_MODEL + ".xmi")), empty()); collector.checkThat("Errors in imported VDB", problemsView.getProblems(ProblemType.ERROR, new ProblemsResourceMatcher(NAME_VDB + ".vdb")), empty()); }