Coverage Report - org.mule.tck.jndi.InMemoryContextFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
InMemoryContextFactory
0%
0/3
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.tck.jndi;
 8  
 
 9  
 import java.util.Hashtable;
 10  
 
 11  
 import javax.naming.Context;
 12  
 import javax.naming.NamingException;
 13  
 import javax.naming.spi.InitialContextFactory;
 14  
 
 15  
 /**
 16  
  * Simple in-memory JNDI context for unit testing.
 17  
  */
 18  0
 public class InMemoryContextFactory implements InitialContextFactory
 19  
 {
 20  
     public Context getInitialContext() throws NamingException
 21  
     {
 22  0
         return getInitialContext(null);
 23  
     }
 24  
 
 25  
     public Context getInitialContext(Hashtable environment) throws NamingException
 26  
     {
 27  0
         return new InMemoryContext();
 28  
     }
 29  
 }
 30  
 
 31