@Test public void testMakeUberfireDock() { final UberfireDockPosition expectedPosition = UberfireDockPosition.WEST; final String expectedIcon = IconType.MAP.toString(); final String expectedPlaceRequestIdentifier = DecisionNavigatorPresenter.IDENTIFIER; final String expectedPerspective = "perspective"; final Double expectedSize = DOCK_SIZE; final String expectedLabel = "DecisionNavigator"; when(translationService.format(DecisionNavigatorPresenter_DecisionNavigator)).thenReturn(expectedLabel); doReturn(expectedPerspective).when(dock).perspective(); final UberfireDock uberfireDock = dock.makeUberfireDock(); final UberfireDockPosition actualPosition = uberfireDock.getDockPosition(); final String actualIcon = uberfireDock.getIconType(); final String actualPlaceRequestIdentifier = uberfireDock.getPlaceRequest().getIdentifier(); final String actualPerspective = uberfireDock.getAssociatedPerspective(); final Double actualSize = uberfireDock.getSize(); final String actualLabel = uberfireDock.getLabel(); assertEquals(expectedPosition, actualPosition); assertEquals(expectedIcon, actualIcon); assertEquals(expectedPlaceRequestIdentifier, actualPlaceRequestIdentifier); assertEquals(expectedPerspective, actualPerspective); assertEquals(expectedSize, actualSize); assertEquals(expectedLabel, actualLabel); }
protected UberfireDock makeUberfireDock() { final UberfireDock uberfireDock = new UberfireDock(position(), icon(), placeRequest(), perspective()); return uberfireDock.withSize(DOCK_SIZE).withLabel(dockLabel()); }
DecisionNavigatorDock implements DiagramEditorDock { protected UberfireDock makeUberfireDock() { final UberfireDock uberfireDock = new UberfireDock(position(), icon(), placeRequest(), perspective()); return uberfireDock.withSize(DOCK_SIZE).withLabel(dockLabel()); } }
DecisionNavigatorDock implements DiagramEditorDock { protected UberfireDock makeUberfireDock() { final UberfireDock uberfireDock = new UberfireDock(position(), icon(), placeRequest(), perspective()); return uberfireDock.withSize(DOCK_SIZE).withLabel(dockLabel()); } DecisionNavigatorDock(); @Inject  DecisionNavigatorDock(final UberfireDocks uberfireDocks,
                                 final DecisionNavigatorPresenter decisionNavigatorPresenter,
                                 final TranslationService translationService); }
DecisionNavigatorDock implements DiagramEditorDock { protected UberfireDock makeUberfireDock() { final UberfireDock uberfireDock = new UberfireDock(position(), icon(), placeRequest(), perspective()); return uberfireDock.withSize(DOCK_SIZE).withLabel(dockLabel()); } DecisionNavigatorDock(); @Inject  DecisionNavigatorDock(final UberfireDocks uberfireDocks,
                                 final DecisionNavigatorPresenter decisionNavigatorPresenter,
                                 final TranslationService translationService); @Override void init(final String perspective); @Override void destroy(); void reload(); void resetContent(); @Override void open(); @Override void close(); }
DecisionNavigatorDock implements DiagramEditorDock { protected UberfireDock makeUberfireDock() { final UberfireDock uberfireDock = new UberfireDock(position(), icon(), placeRequest(), perspective()); return uberfireDock.withSize(DOCK_SIZE).withLabel(dockLabel()); } DecisionNavigatorDock(); @Inject  DecisionNavigatorDock(final UberfireDocks uberfireDocks,
                                 final DecisionNavigatorPresenter decisionNavigatorPresenter,
                                 final TranslationService translationService); @Override void init(final String perspective); @Override void destroy(); void reload(); void resetContent(); @Override void open(); @Override void close();  }