navigationViewFactory.getPerspectivesPanelView()
).thenReturn(
view
);
PerspectiveFactory perspectiveFactory = mock(PerspectiveFactory.class);
when(
clientFactory.getPerspectiveFactory()
).thenReturn(
perspectiveFactory
);
when(
perspectiveFactory.getPerspective("author")
).thenReturn(
new AuthorPerspective()
);
when(
perspectiveFactory.getPerspective("runtime")
).thenReturn(
new RunTimePerspective()
);
when(
perspectiveFactory.getRegisteredPerspectiveTypes()
).thenReturn(
new String[]{"author", "runtime"}
);