Intellij-Plugin
Intellij-Plugin copied to clipboard
Escaping quotes while refactoring results in removal of param in implementation
Steps to reproduce
-
Create the following step impl
@Step("The word <word> has <expectedCount> vowels.") public void verifyVowelsCountInWord(String word, int expectedCount) { int actualCount = countVowels(word); assertEquals(expectedCount, actualCount); } -
Add the following step to spec file.
* The word "gauge" has "3" vowels. -
Refactor the above step to
The word \"word\" has <expectedCount> vowels. -
Removes
wordparam from the method.
Gauge version
0.4.1
Did a analysis with @mahendrakariya . To do this the escape characters needs to be escaped, but for somewhat reasons it's killing Gauge, turns out getting Null Pointer Exception.