Skip to content

Java style (camelcase) snippet generator option #561

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 8 commits into from

Conversation

meza
Copy link
Contributor

@meza meza commented Jul 22, 2013

After this discussion: #302 (comment)

Support for java style function names in snippets.

Configurable with --snippets in the cucumber.options. (junit and command line)
Values: underscore, camelcase
Default: underscore

Currently only supported by the JavaBackend

@@ -196,4 +196,20 @@ public void set_strict_on_strict_aware_formatters() throws Exception {

verify((StrictAware)strictAwareFormatter).setStrict(true);
}

@Test
public void default_snippet_type() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give these tests an intent-revealing name please?

case CAMELCASE:
snippetGenerator = new CamelCaseSnippetGenerator(new JavaSnippet());
break;
default:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be case UNDERSCORE.

default should throw CucumberException

@meza
Copy link
Contributor Author

meza commented Jul 22, 2013

I believe I've incorporated all your suggestions

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
mpkorstanje pushed a commit that referenced this pull request Oct 4, 2019
mpkorstanje pushed a commit that referenced this pull request Oct 4, 2019
mpkorstanje pushed a commit that referenced this pull request Oct 4, 2019
mpkorstanje pushed a commit that referenced this pull request Oct 4, 2019
mpkorstanje pushed a commit that referenced this pull request Oct 4, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants