Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion utilities-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<artifactId>guava</artifactId>
</dependency>


<!-- Test Dependencies -->
<dependency>
<groupId>org.glassfish</groupId>
Expand Down
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