Package org.cedj.geekseek.domain.persistence.test.unit.BaseEntityTimestampableSpecificionTestCase

Examples of org.cedj.geekseek.domain.persistence.test.unit.BaseEntityTimestampableSpecificionTestCase.TestBaseEntity


public class BaseEntityTimestampableSpecificionTestCase extends TimestampableSpecification<TestBaseEntity> {

    @Override
    protected TestBaseEntity createInstance() {
        return new TestBaseEntity();
    }
View Full Code Here


        entity.onUpdate();
    }

    @Test
    public void shouldNotLeakUpdatedDate() throws Exception {
        TestBaseEntity base = new TestBaseEntity();
        base.onUpdate();

        Date date = base.getLastUpdated();
        date.setTime(100);

        Assert.assertNotEquals(date, base.getLastUpdated());
    }
View Full Code Here

TOP

Related Classes of org.cedj.geekseek.domain.persistence.test.unit.BaseEntityTimestampableSpecificionTestCase.TestBaseEntity

Copyright © 2018 www.massapicom. 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.