Fix order dependent NPE in LoadLanguage test (#2922)
* Ensure ProjectManager is initialized before test - fixes #2895 * Fix indentation (detabify)
This commit is contained in:
parent
c5e6ac9f90
commit
561619399c
@ -11,6 +11,7 @@ import java.io.IOException;
|
|||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
|
|
||||||
import org.testng.annotations.BeforeMethod;
|
import org.testng.annotations.BeforeMethod;
|
||||||
|
import org.testng.annotations.BeforeTest;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParseException;
|
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.fasterxml.jackson.databind.node.ObjectNode;
|
||||||
import com.google.refine.RefineServlet;
|
import com.google.refine.RefineServlet;
|
||||||
import com.google.refine.commands.CommandTestBase;
|
import com.google.refine.commands.CommandTestBase;
|
||||||
|
import com.google.refine.io.FileProjectManager;
|
||||||
import com.google.refine.util.ParsingUtilities;
|
import com.google.refine.util.ParsingUtilities;
|
||||||
|
import com.google.refine.util.TestUtils;
|
||||||
|
|
||||||
import edu.mit.simile.butterfly.ButterflyModule;
|
import edu.mit.simile.butterfly.ButterflyModule;
|
||||||
|
|
||||||
public class LoadLanguageCommandTests extends CommandTestBase {
|
public class LoadLanguageCommandTests extends CommandTestBase {
|
||||||
|
|
||||||
|
@BeforeTest
|
||||||
|
public void setUpTest() throws IOException {
|
||||||
|
FileProjectManager.initialize(TestUtils.createTempDirectory("openrefine-test-workspace-dir"));
|
||||||
|
}
|
||||||
|
|
||||||
@BeforeMethod
|
@BeforeMethod
|
||||||
public void setUpCommand() {
|
public void setUpCommand() {
|
||||||
command = new LoadLanguageCommand();
|
command = new LoadLanguageCommand();
|
||||||
|
Loading…
Reference in New Issue
Block a user