@Test public void testInit() { searchService.init(clientSession); verify(clientSession).getCanvasHandler(); verify(canvasHandler).getDiagram(); verify(diagram).getMetadata(); verify(metadata).getPath(); }
public void init(final ClientSession session) { this.path = session.getCanvasHandler().getDiagram().getMetadata().getPath(); }
FunctionSearchService implements LiveSearchService<String> { public void init(final ClientSession session) { this.path = session.getCanvasHandler().getDiagram().getMetadata().getPath(); } }
FunctionSearchService implements LiveSearchService<String> { public void init(final ClientSession session) { this.path = session.getCanvasHandler().getDiagram().getMetadata().getPath(); } @Inject  FunctionSearchService(final ConditionEditorAvailableFunctionsService availableFunctionsService,
                                 final FunctionNamingService functionNamingService); }
FunctionSearchService implements LiveSearchService<String> { public void init(final ClientSession session) { this.path = session.getCanvasHandler().getDiagram().getMetadata().getPath(); } @Inject  FunctionSearchService(final ConditionEditorAvailableFunctionsService availableFunctionsService,
                                 final FunctionNamingService functionNamingService); void init(final ClientSession session); void reload(final String type,
                       final Command onSuccess); void clear(); @Override void search(final String pattern,
                       final int maxResults,
                       final LiveSearchCallback<String> callback); @Override void searchEntry(final String key,
                            final LiveSearchCallback<String> callback); FunctionDef getFunction(final String function); }
FunctionSearchService implements LiveSearchService<String> { public void init(final ClientSession session) { this.path = session.getCanvasHandler().getDiagram().getMetadata().getPath(); } @Inject  FunctionSearchService(final ConditionEditorAvailableFunctionsService availableFunctionsService,
                                 final FunctionNamingService functionNamingService); void init(final ClientSession session); void reload(final String type,
                       final Command onSuccess); void clear(); @Override void search(final String pattern,
                       final int maxResults,
                       final LiveSearchCallback<String> callback); @Override void searchEntry(final String key,
                            final LiveSearchCallback<String> callback); FunctionDef getFunction(final String function);  }