-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project did not run #33
Comments
What version are you using? Can you prepare a Minimal, Complete, and Verifiable example in a git repo please? |
Well, bad for me I cant reach git repo from my work place. But I assure you all I did was just download this https://github.com/cucumber/cucumber-java-skeleton/ in zip file and open it and tried running tests |
Please disregard my last comment. Can you tell us what OS you’re on and what Java version you’re using? |
Windows 7 Enterprise Service Pack 1 and Java 1.8.0_121 |
Change your OS language to English and try again. |
It works perfectly, thanks @onurozcelik |
I'm reopening this - there should be a better error message. |
I can't make sense of the error.
It's right there! private static final Map<String, Format> formats = new HashMap<String, Format>() {{
put("undefined", new ColorFormat(AnsiEscapes.YELLOW));
....
}}; Much less of how the OS language influences this. |
Ah found it. It's in String formattedStepText = formatStepText(keyword, stepText, formats.get(result.getStatus().lowerCaseN11ame()), formats.get(result.getStatus().lowerCaseName() + "_arg"), testStep.getDefinitionArgument()); Which calls
Which calls public String toLowerCase() {
return toLowerCase(Locale.getDefault());
} Which uses a * Converts all of the characters in this {@code String} to lower
* case using the rules of the default locale. This is equivalent to calling
* {@code toLowerCase(Locale.getDefault())}.
* <p>
* <b>Note:</b> This method is locale sensitive, and may produce unexpected
* results if used for strings that are intended to be interpreted locale
* independently.
* Examples are programming language identifiers, protocol keys, and HTML
* tags.
* For instance, {@code "TITLE".toLowerCase()} in a Turkish locale
* returns {@code "t\u005Cu0131tle"}, where '\u005Cu0131' is the
* LATIN SMALL LETTER DOTLESS I character.
* To obtain correct results for locale insensitive strings, use
* {@code toLowerCase(Locale.ROOT)}.
* <p> |
Several formatters use lowercased string representations of enum values. Doing this withouth an explicit locale results in the default locale being used. This may lead to surpricing errors. Fixes: cucumber/cucumber-java-skeleton#33
Several plugins use lowercased string representations of enum values. Doing this without an explicit locale results in the default locale being used. This may lead to surprising errors. Fixes: cucumber/cucumber-java-skeleton#33
Nice one @mpkorstanje! |
Several plugins use lowercased string representations of enum values. Doing this without an explicit locale results in the default locale being used. This may lead to surprising errors. Fixes: cucumber/cucumber-java-skeleton#33
I didn't changed anything but for some reason whenever try to run this I get the stacktrace below
`
java.lang.NullPointerException: No format for key undefıned
`
The text was updated successfully, but these errors were encountered: