Cannot pass unicode characters as parameter from @Row annotations
GoogleCodeExporter opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Create a parametrised test
2. Put some non-ASCII Unicode characters (directly or in \u0000 format, for
example ‘‘‘ятспек’’’ )
3. Run the test
What is the expected output? What do you see instead?
java.util.NoSuchElementException
at com.googlecode.yatspec.internal.totallylazy.Iterators.head(Iterators.java:88)
at com.googlecode.yatspec.internal.totallylazy.Sequences.head(Sequences.java:230)
at com.googlecode.yatspec.internal.totallylazy.Sequence.head(Sequence.java:76)
at com.googlecode.yatspec.state.TestResult.findScenario(TestResult.java:63)
at com.googlecode.yatspec.state.TestResult.getScenario(TestResult.java:38)
at com.ft.api.yatspec.extensions.ConcurrentSpecRunner$1.evaluate(ConcurrentSpecRunner.java:78)
<< this class is just an extension of SpecRunner.
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
What version of the product are you using? On what operating system?
198 on Win7, Maven 2
Please provide any additional information below.
The test passes if the unicode value is hardcoded in the test method body as a
literal, but throws the exception if it is passed as a parameter from a @Row
annotation.
Thanks!
Original issue reported on code.google.com by albertof...@gmail.com
on 26 Nov 2012 at 10:42