Package org.apache.openjpa.conf.CacheMarshaller

Examples of org.apache.openjpa.conf.CacheMarshaller.ValidationPolicy


    public void testConfiguration() {
        assertEquals(getClass().getName(), cm.getId());
    }

    public void testValidation() {
        ValidationPolicy vp = ((CacheMarshallerImpl) cm).getValidationPolicy();
        assertEquals(OpenJPAVersionAndConfigurationTypeValidationPolicy.class,
            vp.getClass());
        Object[] cached = (Object[]) vp.getCacheableData(this);

        assertEquals(3, cached.length);
        assertEquals(OpenJPAVersion.VERSION_ID, cached[0]);
        assertEquals(emf.getConfiguration().getClass().getName(), cached[1]);
        assertEquals(this, cached[2]);

        assertEquals(this, vp.getValidData(cached));
    }
View Full Code Here


    public void testConfiguration() {
        assertEquals(getClass().getName(), cm.getId());
    }

    public void testValidation() {
        ValidationPolicy vp = ((CacheMarshallerImpl) cm).getValidationPolicy();
        assertEquals(OpenJPAVersionAndConfigurationTypeValidationPolicy.class,
            vp.getClass());
        Object[] cached = (Object[]) vp.getCacheableData(this);

        assertEquals(3, cached.length);
        assertEquals(OpenJPAVersion.VERSION_ID, cached[0]);
        assertEquals(emf.getConfiguration().getClass().getName(), cached[1]);
        assertEquals(this, cached[2]);

        assertEquals(this, vp.getValidData(cached));
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.conf.CacheMarshaller.ValidationPolicy

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.