/* Copyright (c) 2013 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Contributors:
* David Winslow (Boundless) - initial implementation
*/
package org.locationtech.geogig.storage.integration.mongo;
import org.locationtech.geogig.api.Platform;
import com.google.inject.AbstractModule;
public class TestModule extends AbstractModule {
private Platform testPlatform;
/**
* @param testPlatform
*/
public TestModule(Platform testPlatform) {
this.testPlatform = testPlatform;
}
@Override
protected void configure() {
if (testPlatform != null) {
bind(Platform.class).toInstance(testPlatform);
}
}
}