Alexander Lehmann created JBEHAVE-724:
-----------------------------------------

             Summary: 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


Reply via email to