Package org.apache.sling.junit

Examples of org.apache.sling.junit.SlingTestContext


/** Test that adds metadata to the SlingTestContext */
public class OutputMetadataTest {
   
    @Test
    public void addMetadata() {
        final SlingTestContext c = SlingTestContextProvider.getContext();
        assertNotNull("Expecting a SlingTestContext", c);
       
        c.output().put("the_quick", "brown fox!");
        c.output().put("the_answer", 42);
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.junit.SlingTestContext

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.