@Test public void testInit() { final PositionProviderFunction graphProvider = mock(PositionProviderFunction.class); final PositionProviderFunction htmlProvider = mock(PositionProviderFunction.class); final Tutorial tutorial = mock(Tutorial.class); final GuidedTourBridgeInitializer bridgeInitializer = new GuidedTourBridgeInitializer(graphObserver, gridObserver, graphPositionUtils, htmlPositionUtils, monitorBridge, dmnTutorial); when(graphPositionUtils.createPositionProvider()).thenReturn(graphProvider); when(htmlPositionUtils.createPositionProvider()).thenReturn(htmlProvider); when(dmnTutorial.getTutorial()).thenReturn(tutorial); bridgeInitializer.init(); verify(monitorBridge).registerPositionProvider("DMNEditorGraph", graphProvider); verify(monitorBridge).registerPositionProvider("DMNEditorHTMLElement", htmlProvider); verify(monitorBridge).registerObserver(graphObserver); verify(monitorBridge).registerObserver(gridObserver); verify(monitorBridge).registerTutorial(tutorial); }
public void init() { registerPositionProviders(); registerObservers(); registerTutorials(); }
GuidedTourBridgeInitializer { public void init() { registerPositionProviders(); registerObservers(); registerTutorials(); } }
GuidedTourBridgeInitializer { public void init() { registerPositionProviders(); registerObservers(); registerTutorials(); } @Inject  GuidedTourBridgeInitializer(final GuidedTourGraphObserver graphObserver,
                                       final GuidedTourGridObserver gridObserver,
                                       final GraphElementsPositionProviderFactory graphPositionUtils,
                                       final HTMLElementsPositionProviderFactory htmlPositionUtils,
                                       final GuidedTourBridge monitorBridge,
                                       final DMNTutorial dmnTutorial); }
GuidedTourBridgeInitializer { public void init() { registerPositionProviders(); registerObservers(); registerTutorials(); } @Inject  GuidedTourBridgeInitializer(final GuidedTourGraphObserver graphObserver,
                                       final GuidedTourGridObserver gridObserver,
                                       final GraphElementsPositionProviderFactory graphPositionUtils,
                                       final HTMLElementsPositionProviderFactory htmlPositionUtils,
                                       final GuidedTourBridge monitorBridge,
                                       final DMNTutorial dmnTutorial); void init(); }
GuidedTourBridgeInitializer { public void init() { registerPositionProviders(); registerObservers(); registerTutorials(); } @Inject  GuidedTourBridgeInitializer(final GuidedTourGraphObserver graphObserver,
                                       final GuidedTourGridObserver gridObserver,
                                       final GraphElementsPositionProviderFactory graphPositionUtils,
                                       final HTMLElementsPositionProviderFactory htmlPositionUtils,
                                       final GuidedTourBridge monitorBridge,
                                       final DMNTutorial dmnTutorial); void init();  }