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

Renamed template source directory #180

Merged
merged 3 commits into from
Sep 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Issue #177: removed tests related to template versioning
  • Loading branch information
HugoMario committed Sep 22, 2018
commit 1fbcb0ff9cf51f8ac59dfbe80b40be77d1a0ffe1
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,4 @@ public void testPutTemplateDirProperty() throws Exception {
Assert.assertEquals(codegen.templateDir(), "/absolute/path");
Assert.assertEquals(codegen.embeddedTemplateDir(), "handlebars/php");
}


@Test
public void testPutTemplateDirPropertyWithTemplateVersion() throws Exception {
final PhpClientCodegen codegen = new PhpClientCodegen();
codegen.additionalProperties().put(CodegenConstants.TEMPLATE_DIR, "/absolute/path");
codegen.additionalProperties().put(CodegenConstants.TEMPLATE_VERSION, "v3");
codegen.processOpts();

Assert.assertEquals(codegen.templateDir(), "/absolute/path");
Assert.assertEquals(codegen.embeddedTemplateDir(), "v3/php");
}
}