use of com.google.refine.ProjectManager in project OpenRefine by OpenRefine.
the class HistoryTests method SetUp.
@BeforeMethod
public void SetUp() {
projectManager = mock(ProjectManager.class);
historyEntryManager = mock(HistoryEntryManager.class);
ProjectManager.singleton = projectManager;
proj = new Project();
projectMetadata = mock(ProjectMetadata.class);
when(projectManager.getProject(Mockito.anyLong())).thenReturn(proj);
when(projectManager.getProjectMetadata(Mockito.anyLong())).thenReturn(projectMetadata);
when(projectManager.getHistoryEntryManager()).thenReturn(historyEntryManager);
SUT = new History(proj);
}
use of com.google.refine.ProjectManager in project OpenRefine by OpenRefine.
the class HistoryTests method SetUp.
@BeforeMethod
public void SetUp() {
projectManager = mock(ProjectManager.class);
ProjectManager.singleton = projectManager;
proj = new Project();
SUT = new History(proj);
}
Aggregations