ocadotechnology / test-arranger

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

Values are reused when generating records #60

Closed mjureczko closed 5 months ago

mjureczko commented 1 year ago

The following test fails:

    @Test
    void should_notRepeatTheSameValues_when_generatingRecords() {
        //when
        Data actual1 = some(Data.class);
        Data actual2 = some(Data.class);

        //then
        assertThat(actual1.value()).isNotEqualTo(actual2.value());
        assertThat(actual1.name()).isNotEqualTo(actual2.name());
    }
mjureczko commented 5 months ago

The issue cannot be reproduced in the current version, but it was present in the version available on the issue report date. It appears to have been fixed in a subsequent update.