Skip to content
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

Concordion.NET appears to have FullOGNL switched on by default #9

Open
nigelcharman opened this issue Mar 26, 2016 · 0 comments
Open

Comments

@nigelcharman
Copy link
Member

The Java implementation of Concordion restricts the expression language to a sensible subset of expressions, so that specifications are kept simple and maintainable. If users really want to work around this, the annotation FullOGNL enables [complex expressions].

In Concordion.NET, the complex expressions appear to be enabled by default. For example, changing the fixture in the tutorial to return an array:

    public string[] Split(string fullName)
    {
        Result result = new Result();
        return fullName.Split(' ');
    }

and the spec to use array expressions:

        into first name <span concordion:assert-equals="#result[0]">Jane</span>
        and last name <span concordion:assert-equals="#result[1]">Smith</span>.

does not cause an error.

We should update Concordion.NET to be consistent with Concordion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant