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

Blank value is not formatted #157

Closed
nikowitt opened this issue Oct 29, 2015 · 1 comment
Closed

Blank value is not formatted #157

nikowitt opened this issue Oct 29, 2015 · 1 comment
Milestone

Comments

@nikowitt
Copy link
Contributor

Hi Jan,

    @Test
    public void grid_export_with_empty_collections() throws Exception {
        given().logged_in_system_user().and().entity_of_$_with_restrictions_$(TestEntity.class, Restrictions.isEmpty(TestEntity.CHILDREN));
        when().grid_report_for_$_is_rendered(TestEntity.class);
        then().report_has_$_lines(9).and().field_in_row_$_column_$_equals_$(3, 'G', null);
    }

The last called method

public ThenStage field_in_row_$_column_$_equals_$(int row, char column, @NotSetIfNull Object value) throws Exception {

The formatter @NotSetIfNull on object "value" covers null values. I've just tried to extend the formatter to cover blank values, but it seems that blank values are not covered at all, even though the formatter triggers properly and returns a formatted value for a blank value.

@janschaefer
Copy link
Contributor

True. That seems to be a bug.

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

No branches or pull requests

2 participants