Commit f8e44a4b authored by Alexander Diewald's avatar Alexander Diewald

Instantiate missing annotations

* Speedup when loading the generated TCs.
* Avoid warnings when loading the generated TCs. IDs are generated after
  instantiating the missing annotations.

Issue-Ref: 4008
Issue-Url: https://af3-developer.fortiss.org/issues/4008Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 789d7a36
ArchitectureGraph.java 4f1539b6997b7a71d744ef750aa2f102097f211d YELLOW
ExplorationTestCaseGenerator.java 55de602c69f445a5a72c8a8a61b8ee9fada1c974 YELLOW
ExplorationTestCaseGenerator.java 750ca96bf8e481c7d9a2303f8da609ffb914f6f2 RED
......@@ -24,6 +24,7 @@ import static org.fortiss.af3.exploration.testgenerator.util.ProjectUtils.create
import static org.fortiss.af3.exploration.testgenerator.util.ProjectUtils.saveFileProjects;
import static org.fortiss.af3.exploration.util.ExplorationUtils.isDumpTestgenGraphmetricsEnabled;
import static org.fortiss.af3.project.utils.TestCaseProjectUtils.loadTestProject;
import static org.fortiss.tooling.base.utils.AnnotationUtils.instantiateAnnotationsRecursive;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.info;
......@@ -87,6 +88,9 @@ public class ExplorationTestCaseGenerator {
info(AF3ExplorationActivator.getDefault(),
"Test cases are generated in the runtime Workspace.");
// Instantiate missing annotations.
fileProjects.forEach(fp -> instantiateAnnotationsRecursive(fp));
saveFileProjects(fileProjects);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment