Move ProjectManager initialization to beforeMethod

This commit is contained in:
Tom Morris 2020-08-03 20:13:35 -04:00
parent 52194e1685
commit a0819acbd6

View File

@ -11,7 +11,6 @@ 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;
@ -28,13 +27,9 @@ 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() {
public void setUpCommand() throws IOException {
FileProjectManager.initialize(TestUtils.createTempDirectory("openrefine-test-workspace-dir"));
command = new LoadLanguageCommand();
ButterflyModule coreModule = mock(ButterflyModule.class);