Package org.apache.sling.models.testmodels.interfaces

Examples of org.apache.sling.models.testmodels.interfaces.ChildValueMapModel


        when(child.adaptTo(ValueMap.class)).thenReturn(map);

        Resource res = mock(Resource.class);
        when(res.getChild("firstChild")).thenReturn(child);

        ChildValueMapModel model = factory.getAdapter(res, ChildValueMapModel.class);
        assertNotNull(model);
        assertEquals(map, model.getFirstChild());
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.models.testmodels.interfaces.ChildValueMapModel

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.