Examples of DomainEventSubDto


Examples of org.dayatang.utils.support.DomainEventSubDto

        assertThat(result.getVersion(), is(not(100)));
    }

    @Test
    public void beanCopy() {
        DomainEventSubDto dto = new DomainEventSubDto();
        dto.setId("anId");
        dto.setTransientField("transient");
        dto.setOccurredOn("2002-04-11");
        dto.setProp1("abc");
        dto.setVersion("234");
        DomainEventSub event = instance.deserialize(instance.serialize(dto), DomainEventSub.class);
        assertThat(event.getId(), is("anId"));
        assertThat(event.getOccurredOn(), is(DateUtils.date(2002, 4, 11)));
        assertThat(event.getTransientField(), nullValue());
        assertThat(event.getProp1(), is("abc"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.