Fix order dependent NPE in LoadLanguage test (#2922)

* Ensure ProjectManager is initialized before test - fixes #2895

* Fix indentation (detabify)
This commit is contained in:
Tom Morris 2020-07-14 12:06:04 -04:00 committed by GitHub
parent c5e6ac9f90
commit 561619399c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ import java.io.IOException;
import javax.servlet.ServletException;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import com.fasterxml.jackson.core.JsonParseException;
@ -19,12 +20,19 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.refine.RefineServlet;
import com.google.refine.commands.CommandTestBase;
import com.google.refine.io.FileProjectManager;
import com.google.refine.util.ParsingUtilities;
import com.google.refine.util.TestUtils;
import edu.mit.simile.butterfly.ButterflyModule;
public class LoadLanguageCommandTests extends CommandTestBase {
@BeforeTest
public void setUpTest() throws IOException {
FileProjectManager.initialize(TestUtils.createTempDirectory("openrefine-test-workspace-dir"));
}
@BeforeMethod
public void setUpCommand() {
command = new LoadLanguageCommand();