Skip to content

Commit

Permalink
#1622 fixed eclipse adapt monolithic templates test
Browse files Browse the repository at this point in the history
added templates folder
added some comments describing the scenario
  • Loading branch information
jan-vcapgemini committed Mar 17, 2023
1 parent 9148d62 commit 2e794bd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,17 @@ public void testBasicOpenAPIGenerationWithAdaptTemplates() throws Exception {
project.getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
this.tmpMavenProjectRule.updateProject();

// retrieve CobiGen home directory (overwritten through environment variables)
File templatesDirectory = CobiGenPaths.getTemplatesFolderPath().toFile();

// create templates directory as this should be present in this scenario
this.tempFolder.newFolder("playground", "project", "templates");

// download latest monolithic templates to simulate existing template jars
TemplatesJarUtil.downloadLatestDevon4jTemplates(true, templatesDirectory);
TemplatesJarUtil.downloadLatestDevon4jTemplates(false, templatesDirectory);

// adapt template jars into CobiGen_Templates project
EclipseCobiGenUtils.runAndCaptureAdaptTemplates(bot);
EclipseUtils.updateMavenProject(bot, ResourceConstants.CONFIG_PROJECT_NAME);

Expand Down

0 comments on commit 2e794bd

Please sign in to comment.