ocadotechnology / test-arranger

Arranges test data as fully populated objects
Apache License 2.0
23 stars 2 forks source link

Does not initialize collections in records when overrides are used #55

Closed mjureczko closed 1 year ago

mjureczko commented 1 year ago

Given

record MyRecod(
        String is,
        Set<String> strings,
        List<String> stringsWithOverride) {
}

When

var actual = some(MyRecord.class, Map.of("stringsWithOverride", ()->List.of(someString()));

Then actual.string is an empty set.

mjureczko commented 1 year ago

Depends on #54