use of org.freeplane.core.ui.menubuilders.generic.ResourceAccessor in project freeplane by freeplane.
the class MenuBuildProcessFactoryTest method setup.
@Before
public void setup() {
freeplaneActions = mock(FreeplaneActions.class);
final ResourceAccessor resourceAccessorMock = mock(ResourceAccessor.class);
when(resourceAccessorMock.getRawText(Matchers.anyString())).thenReturn("text");
final IUserInputListenerFactory userInputListenerFactory = mock(IUserInputListenerFactory.class);
final FreeplaneMenuBar menubar = TestMenuBarFactory.createFreeplaneMenuBar();
when(userInputListenerFactory.getMenuBar()).thenReturn(menubar);
phaseProcessor = new MenuBuildProcessFactory(userInputListenerFactory, freeplaneActions, resourceAccessorMock, mock(IAcceleratorMap.class), new EntriesForAction(), Collections.<BuildPhaseListener>emptyList()).getBuildProcessor();
}
Aggregations