Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable detection of duplicated template sets #1663

Open
jan-vcapgemini opened this issue Mar 31, 2023 · 0 comments
Open

Enable detection of duplicated template sets #1663

jan-vcapgemini opened this issue Mar 31, 2023 · 0 comments
Labels
comp:core Team_CobiGen_Templates These issues will be handeled by the team CobiGen_Templates

Comments

@jan-vcapgemini
Copy link
Collaborator

We've prepared a test for a generate using two identical template sets with different names.
This feature needs to be implemented and the test enabled.

/**
* Tests if duplicated template sets using same trigger id and increment name were not loadable and an exception was
* thrown
*
* @throws Exception test fails
*/
@Ignore // TODO: Detection and handling of duplicates needs to be implemented first, then the test can be enabled
@Test
public void testTemplateSetsDuplicatedThrowsError() throws Exception {
File folder = this.tmpFolder.newFolder("TemplateSetsDuplicatedTest");
Path templateSetPathAdapted = TEST_FILE_ROOT_PATH.resolve("valid_template_sets_duplicated");
FileUtils.copyDirectory(templateSetPathAdapted.toFile(), folder);
withEnvironmentVariable(ConfigurationConstants.CONFIG_ENV_HOME, folder.getAbsolutePath()).execute(() -> {
TemplateSetConfiguration templateSetConfiguration = new TemplateSetConfiguration(
folder.toPath().resolve("template-sets"));
// TODO add check for proper exception message
});
}

@jan-vcapgemini jan-vcapgemini added comp:core Team_CobiGen_Templates These issues will be handeled by the team CobiGen_Templates labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:core Team_CobiGen_Templates These issues will be handeled by the team CobiGen_Templates
Projects
None yet
Development

No branches or pull requests

1 participant