Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
import javax.naming.InitialContext;
import javax.naming.NamingException;

/**
* Simple wrapper class for getting an {@link InitialContext} to allow for mocking in tests
*/
public class InitialContextFactory {

/**
* Instantiates a new {@link InitialContext}
*
* @return a shiny new {@link InitialContext}
* @throws NamingException if instantiating the {@link InitialContext} fails
*/
public InitialContext create() throws NamingException {
return new InitialContext();
}
Expand Down