[ https://jira.codehaus.org/browse/JBEHAVE-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292745#comment-292745 ]
Alexander Lehmann commented on JBEHAVE-724: ------------------------------------------- https://github.com/alexlehm/jbehave-core/commit/465bf95ded8e94c73b5b6a2d2c4227cedd84d80d JBEHAVE-724: Too many columns in an example table give IndexOutOfBoundsException check for header array size and ignore the rest of the columns > Too many columns in an example table give IndexOutOfBoundsException > ------------------------------------------------------------------- > > Key: JBEHAVE-724 > URL: https://jira.codehaus.org/browse/JBEHAVE-724 > Project: JBehave > Issue Type: Bug > Components: Core > Affects Versions: 3.5.4 > Reporter: Alexander Lehmann > Priority: Minor > > When writing an example table that contains a vertical bar in a value, I got > an IndexOutOfBoundsException > This somehow hangs the execution of the scenario, the log only says > "BeforeStories" and never gets to start the story, but the Firefox from > Selenium stays open. > It would be better if a proper error message or warning is printed and the > story is marked as failed or not executed. > A preliminary test to show the error is this, I'll look a bit further into > the problem maybe tomorrow. > {noformat} > @Test > public void shouldCatchErrorWrongNumberOfColumns() { > String tableWithWrongColumn = "|a|b|\n|a|b|c|\n"; > ExamplesTable table = new ExamplesTable(tableWithWrongColumn); > } > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email