How to specify prototype name of step definition in Intellij Idea?

I am writing my cucumber script to include the next step:

And the frabjous bandersnatch whiffled "Callooh" 

Type alt-enter, select "Create step definition" and will produce:

 @And("^the frabjous bandersnatch whiffled \"([^\"]*)\"$") public void the_frabjous_bandersnatch_whiffled(String arg1) throws Throwable { // Express the Regexp above with the code you wish you had throw new PendingException(); } 

but our coding standards require camelCase methods, so I need to manually change the_frabjous_bandersnatch_whiffled to theFrabjousBandersnatchWhiffled . Is there any setting somewhere that tells Idea to use the camel case instead of underlining in this situation?

Also, when it offers possible classes to host my new stepdef, can I filter it only for classes with names ending in "Steps"?

+7
coding-style intellij-idea content-assist cucumber-jvm
source share
1 answer

Probably too late, but perhaps still useful:

You can set the --snippets camelcase to "Edit Configurations" in intelliJ:

Main menu Run β†’ Edit Configurations

(I showed a screenshot to show this, but the almighty Stackoverflow considers me unworthy of posting well-designed images!)

+2
source share

All Articles