Package org.apache.sling.models.testmodels.classes.implextend

Examples of org.apache.sling.models.testmodels.classes.implextend.SimplePropertyModel


     */
    @Test
    public void testExtendsClassModel() {
        Resource res = getMockResourceWithProps();

        SimplePropertyModel model = factory.getAdapter(res, SimplePropertyModel.class);
        assertNotNull(model);
        assertEquals("!first-value|null|third-value!", model.getAllProperties());
        assertTrue(factory.canCreateFromAdaptable(res, SimplePropertyModel.class));

        EvenSimplerPropertyModel simplerModel = factory.getAdapter(res, EvenSimplerPropertyModel.class);
        assertNotNull(simplerModel);
        assertEquals("first-value", model.getFirst());
        assertTrue(factory.canCreateFromAdaptable(res, EvenSimplerPropertyModel.class));
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.models.testmodels.classes.implextend.SimplePropertyModel

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.