Examples of AnnotatedExtendedDataTransferObjectImpl


Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

        final DomainObject entity = new DomainObjectImpl();
        entity.setValue("entityVal1");
        entity.setValue2("entityVal2");
        entity.setTimestamp(time);

        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();

        service.entityToDtoAndBackToEntityVoidExact(dto, entity);

        assertEquals(dto.getValue(), "entityVal2");
        assertEquals(dto.getValue2(), "entityVal1");
        assertNotNull(dto.getTimestamp());
        assertTrue(dto.getTimestamp().after(entity.getTimestamp()));

        assertEquals(entity.getValue(), "entityVal2");
        assertEquals(entity.getValue2(), "entityVal1");
        assertEquals(entity.getTimestamp(), time);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

        final DomainObject entity = new DomainObjectImpl();
        entity.setValue("entityVal1");
        entity.setValue2("entityVal2");
        entity.setTimestamp(time);

        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();

        service.entityToDtoAndBackToEntityVoid(dto, entity, new Object());

        assertEquals(dto.getValue(), "entityVal2");
        assertEquals(dto.getValue2(), "entityVal1");
        assertNotNull(dto.getTimestamp());
        assertTrue(dto.getTimestamp().after(entity.getTimestamp()));

        assertEquals(entity.getValue(), "entityVal2");
        assertEquals(entity.getValue2(), "entityVal1");
        assertEquals(entity.getTimestamp(), time);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

        final DomainObject entity = new DomainObjectImpl();
        entity.setValue("entityVal1");
        entity.setValue2("entityVal2");
        entity.setTimestamp(time);

        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();

        service.entityToDtoAndBackToEntityVoidByFilterExact(dto, entity);

        assertNull(dto.getValue());
        assertEquals(dto.getValue2(), "entityVal1");
        assertNotNull(dto.getTimestamp());
        assertTrue(dto.getTimestamp().after(entity.getTimestamp()));

        assertNull(entity.getValue());
        assertEquals(entity.getValue2(), "entityVal2");
        assertEquals(entity.getTimestamp(), time);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

        final DomainObject entity = new DomainObjectImpl();
        entity.setValue("entityVal1");
        entity.setValue2("entityVal2");
        entity.setTimestamp(time);

        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();

        service.entityToDtoAndBackToEntityVoidByFilter(dto, entity, new Object());

        assertNull(dto.getValue());
        assertEquals(dto.getValue2(), "entityVal1");
        assertNotNull(dto.getTimestamp());
        assertTrue(dto.getTimestamp().after(entity.getTimestamp()));

        assertNull(entity.getValue());
        assertEquals(entity.getValue2(), "entityVal2");
        assertEquals(entity.getTimestamp(), time);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

                this.applicationContext.getBean("annSimpleTransferableNoMatchService", TestNoMatchService.class);

        assertCountersAreZero();

        final Date time = new Date();
        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();
        dto.setValue("dtoVal1");
        dto.setValue2("dtoVal2");
        dto.setTimestamp(time);

        final DomainObject entity = new DomainObjectImpl();

        service.dtoToEntityBeforeExact(dto, entity);

        assertNull(entity.getValue());
        assertNull(entity.getValue2());
        assertNull(entity.getTimestamp());

        assertEquals(dto.getValue(), "dtoVal1");
        assertEquals(dto.getValue2(), "dtoVal2");
        assertEquals(dto.getTimestamp(), time);

        // final check counters
        assertCounters(0, 0, 0, 0, 0, 0);

    }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.test.impl.AnnotatedExtendedDataTransferObjectImpl

        final TestService service =
                this.applicationContext.getBean("annSimpleTransferableService", TestService.class);

        final Date time = new Date();
        final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();
        dto.setValue("dtoVal1");
        dto.setValue2("dtoVal2");
        dto.setTimestamp(time);

        final DomainObject entity = new DomainObjectImpl();

        service.dtoToEntityBeforeExact(dto, entity);

        assertEquals(entity.getValue(), "dtoVal1");
        assertEquals(entity.getValue2(), "dtoVal2");
        assertNull(entity.getTimestamp());

        assertEquals(dto.getValue(), "dtoVal1");
        assertEquals(dto.getValue2(), "dtoVal2");
        assertEquals(dto.getTimestamp(), time);

    }
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.