Intellij-Plugin icon indicating copy to clipboard operation
Intellij-Plugin copied to clipboard

Escaping quotes while refactoring results in removal of param in implementation

Open kashishm opened this issue 9 years ago • 1 comments

Steps to reproduce

  1. 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);
    }
    
  2. Add the following step to spec file.

    * The word "gauge" has "3" vowels.
    
  3. Refactor the above step to The word \"word\" has <expectedCount> vowels.

  4. Removes word param from the method.

Gauge version

0.4.1

kashishm avatar Apr 26 '16 09:04 kashishm

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.

BugDiver avatar Jun 14 '16 08:06 BugDiver