-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
@@ -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() { |
There was a problem hiding this comment.
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?
Clarifying test intention
case CAMELCASE: | ||
snippetGenerator = new CamelCaseSnippetGenerator(new JavaSnippet()); | ||
break; | ||
default: |
There was a problem hiding this comment.
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
Code review fixes
I believe I've incorporated all your suggestions |
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. |
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