mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
11.33.2016 6dee41dc50e9e716c7aac50f0f1bce9047465843
opendj-server-legacy/src/test/java/org/opends/server/ServerContextBuilder.java
@@ -34,16 +34,17 @@
  private final ServerContext serverContext;
  private final DirectoryEnvironmentConfig env;
  public static ServerContextBuilder aServerContext()
  public static ServerContextBuilder aServerContext() throws InitializationException
  {
    return new ServerContextBuilder();
  }
  public ServerContextBuilder()
  public ServerContextBuilder() throws InitializationException
  {
    serverContext = mock(ServerContext.class);
    env = new DirectoryEnvironmentConfig(false);
    env.setMaintainConfigArchive(false);
    when(serverContext.getEnvironment()).thenReturn(env);
  }