@@ -0,0 +1,2295 @@
+package org.javers.core.cases;%0A%0Aimport org.fest.assertions.api.Assertions;%0Aimport org.javers.core.Javers;%0Aimport org.javers.core.JaversBuilder;%0Aimport org.javers.core.metamodel.object.CdoSnapshot;%0Aimport org.junit.Test;%0A%0Aimport javax.persistence.Id;%0Aimport java.math.BigDecimal;%0Aimport java.sql.Timestamp;%0Aimport java.util.Date;%0A%0A%0A/**%0A * see https://github.com/javers/javers/issues/213%0A * @author bartosz.walacik%0A */%0Apublic class ChangedPropertyNamesForNullifiedValuesCase %7B%0A%0A    @Test%0A    public void shouldCalculateChangedPropertyNamesForNullifiedValues() %7B%0A        //given%0A        Javers javers = JaversBuilder.javers().build();%0A        SimpleTypes obj = new SimpleTypes(%221%22);%0A        javers.commit(%22anonymous%22, obj);%0A%0A        //when%0A        obj.shortNumber = -1;%0A        javers.commit(%22anonymous%22, obj);%0A        CdoSnapshot s = javers.getLatestSnapshot(%221%22, SimpleTypes.class).get();%0A%0A        //then%0A        Assertions.assertThat(s.getChangedPropertyNames()).containsExactly(%22shortNumber%22);%0A%0A        //when%0A        obj.nullify();%0A        javers.commit(%22anonymous%22, obj);%0A        s = javers.getLatestSnapshot(%221%22, SimpleTypes.class).get();%0A%0A        //then%0A        Assertions.assertThat(s.getChangedPropertyNames()).hasSize(11);%0A    %7D%0A%0A    static class SimpleTypes %7B%0A        @Id%0A        String id;%0A%0A        enum TestEnum %7B ONE, TWO %7D%0A%0A        Date date = new Date();%0A        java.sql.Date dateSql = new java.sql.Date(date.getTime());%0A        Timestamp ts = new Timestamp(date.getTime());%0A        String text = %22test%22;%0A        Boolean bool = true;%0A        Long longNumber = 1l;%0A        Integer integerNumber = 1;%0A        Short shortNumber = 1;%0A        Double doubleNumber = 1.0;%0A        Float floatNumber = 1.0f;%0A        BigDecimal bigDecimalNumber = BigDecimal.ONE;%0A        byte byteFiled = 0x1;%0A        TestEnum testEnum = TestEnum.ONE;%0A%0A        public SimpleTypes(String id) %7B%0A            this.id = id;%0A        %7D%0A%0A        public void nullify() %7B%0A            date = null;%0A            ts = null;%0A            text = null;%0A            bool = null;%0A            longNumber = null;%0A            integerNumber = null;%0A            shortNumber = null;%0A            doubleNumber = null;%0A            floatNumber = null;%0A            bigDecimalNumber = null;%0A            testEnum = null;%0A        %7D%0A    %7D%0A%0A%7D%0A

test for https://github.com/javers/javers/issues/213