@Test(expected = IllegalArgumentException.class) public void remove() { MLEnvironment mlEnvironment = new MLEnvironment(); Long mlEnvironmentId = MLEnvironmentFactory.registerMLEnvironment(mlEnvironment); MLEnvironmentFactory.remove(mlEnvironmentId); MLEnvironmentFactory.get(mlEnvironmentId); }
public static synchronized MLEnvironment remove(Long mlEnvId) { return map.remove(mlEnvId); }
MLEnvironmentFactory { public static synchronized MLEnvironment remove(Long mlEnvId) { return map.remove(mlEnvId); } }
MLEnvironmentFactory { public static synchronized MLEnvironment remove(Long mlEnvId) { return map.remove(mlEnvId); }  }
MLEnvironmentFactory { public static synchronized MLEnvironment remove(Long mlEnvId) { return map.remove(mlEnvId); }  static synchronized MLEnvironment get(Long mlEnvId); static synchronized MLEnvironment getDefault(); static synchronized void setDefault(MLEnvironment env); static synchronized Long getNewMLEnvironmentId(); static synchronized Long registerMLEnvironment(MLEnvironment env); static synchronized MLEnvironment remove(Long mlEnvId); }
MLEnvironmentFactory { public static synchronized MLEnvironment remove(Long mlEnvId) { return map.remove(mlEnvId); }  static synchronized MLEnvironment get(Long mlEnvId); static synchronized MLEnvironment getDefault(); static synchronized void setDefault(MLEnvironment env); static synchronized Long getNewMLEnvironmentId(); static synchronized Long registerMLEnvironment(MLEnvironment env); static synchronized MLEnvironment remove(Long mlEnvId); static final Long DEFAULT_ML_ENVIRONMENT_ID; }