GlobalConfigResourceImpl implements GlobalConfigResource { @Timed @Override public UiConfig fetchUiConfig() { if (uriFactory != null) { final UrlConfig urlConfig = new UrlConfig( uriFactory.uiUri(AuthenticationService.USERS_URL_PATH).toString(), uriFactory.uiUri(AuthenticationService.API_KEYS_URL_PATH).toString(), uriFactory.uiUri(AuthenticationService.CHANGE_PASSWORD_URL_PATH).toString()); uiConfig.setUrl(urlConfig); } return uiConfig; } @Inject  GlobalConfigResourceImpl(final GlobalConfigService globalConfigService,
                             final NodeService nodeService,
                             final UiConfig uiConfig,
                             final NodeInfo nodeInfo,
                             final WebTargetFactory webTargetFactory,
                             final UriFactory uriFactory); @Timed @Override ListConfigResponse list(final GlobalConfigCriteria criteria); @Timed @Override ListConfigResponse listByNode(final String nodeName,
                                         final GlobalConfigCriteria criteria); @Timed @Override ConfigProperty getPropertyByName(final String propertyPath); @Timed OverrideValue<String> getYamlValueByName(final String propertyPath); @Timed @Override OverrideValue<String> getYamlValueByNodeAndName(final String propertyName,
                                                           final String nodeName); @Timed @Override ConfigProperty create(final ConfigProperty configProperty); @Timed @Override ConfigProperty update(final String propertyName, final ConfigProperty configProperty); @Timed @Override UiConfig fetchUiConfig();  }
@Test void fetchUiConfig() { initNodes(); String subPath = GlobalConfigResource.FETCH_UI_CONFIG_SUB_PATH; UiConfig expectedResponse = new UiConfig(); final UiConfig listConfigResponse = doGetTest( subPath, UiConfig.class, expectedResponse); }