Package org.mockejb.jndi

Examples of org.mockejb.jndi.MockContextFactory


        assertEquals(sut.resolvePlaceholder(propName, properties, 0), "properties");
    }

    private void givenTomcatContextWithProps(String placeholder, String value) throws NamingException {
        MockContextFactory.setAsInitial();
        Context tomcatContext = new MockContextFactory().getInitialContext(null);
        tomcatContext.bind(placeholder, value);
        new InitialContext().bind("java:/comp/env", tomcatContext);
    }
View Full Code Here

TOP

Related Classes of org.mockejb.jndi.MockContextFactory

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.