Search in sources :

Example 1 with ProjectManager

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);
}
Also used : Project(com.google.refine.model.Project) ProjectMetadata(com.google.refine.ProjectMetadata) ProjectManager(com.google.refine.ProjectManager) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with ProjectManager

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);
}
Also used : Project(com.google.refine.model.Project) History(com.google.refine.history.History) ProjectManager(com.google.refine.ProjectManager) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

ProjectManager (com.google.refine.ProjectManager)2 Project (com.google.refine.model.Project)2 BeforeMethod (org.testng.annotations.BeforeMethod)2 ProjectMetadata (com.google.refine.ProjectMetadata)1 History (com.google.refine.history.History)1