Skip to content

Commit

Permalink
Added failing test for #272
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 21, 2012
1 parent 566962b commit cc60df4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions java/src/test/java/cucumber/runtime/java/JavaSnippetTest.java
Expand Up @@ -5,6 +5,7 @@
import gherkin.formatter.model.DataTableRow;
import gherkin.formatter.model.DocString;
import gherkin.formatter.model.Step;
import org.junit.Ignore;
import org.junit.Test;

import java.util.Collections;
Expand Down Expand Up @@ -99,6 +100,17 @@ public void generatesSnippetWithDocString() {
assertEquals(expected, snippetForDocString("I have:", new DocString("text/plain", "hello", 1)));
}

@Test
@Ignore
public void recognisesWordWithNumbers() {
String expected = "" +
"@Given(\"^Then it responds ([^\\\"]*)$\")\n" +
"public void Then_it_responds_UTF(int arg1) {\n" +
" // Express the Regexp above with the code you wish you had\n" +
"}\n";
assertEquals(expected, snippetFor("Then it responds UTF-8"));
}

@Test
public void generatesSnippetWithDataTable() {
String expected = "" +
Expand Down

0 comments on commit cc60df4

Please sign in to comment.