Package org.apache.sling.models.it.models

Examples of org.apache.sling.models.it.models.InterfaceInjectionTestModel


        assertSame("Adaptable is not injected", resource, model.getResource());
    }

    @Test
    public void testInterfaceInjection() {
        InterfaceInjectionTestModel model = resource.adaptTo(InterfaceInjectionTestModel.class);
   
        assertNotNull("Model is null", model);
        assertEquals("Test Property is not set correctly", value, model.getTestProperty());
        assertNotNull("Filters is null", model.getFilters());
        assertSame("Adaptable is not injected", resource, model.getResource());
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.models.it.models.InterfaceInjectionTestModel

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.