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

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


        Resource child = mock(Resource.class);

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

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

TOP

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

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.