use of com.google.refine.tests.RefineServletStub in project OpenRefine by OpenRefine.
the class TransposeTests method SetUp.
@BeforeMethod
public void SetUp() {
servlet = new RefineServletStub();
ProjectManager.singleton = new ProjectManagerStub();
ImportingManager.initialize(servlet);
project = new Project();
metadata = new ProjectMetadata();
job = ImportingManager.createJob();
options = mock(JSONObject.class);
importer = new SeparatorBasedImporter();
}
use of com.google.refine.tests.RefineServletStub in project OpenRefine by OpenRefine.
the class ImporterTest method setUp.
public void setUp() {
//FIXME - should we try and use mock(Project.class); - seems unnecessary complexity
servlet = new RefineServletStub();
ImportingManager.initialize(servlet);
project = new Project();
metadata = new ProjectMetadata();
job = ImportingManager.createJob();
options = Mockito.mock(JSONObject.class);
}
Aggregations