@Test public void testAppStoreWrapper() throws MalformedURLException { Application application = mockApplication(); application.setUrl(MOCK_HOST + "/" + MOCK_CONTEXT); AppStoreWrapper result = AppStoreBuilder.build(application, MOCK_DOMAIN, MOCK_CONFIGURATION_ID, MOCK_USER_ID); validateCommonAttributes(result); AppStoreAssetsWrapper assets = result.getAssets(); StringBuilder loadUrl = getExpectedLoadUrl(application.getUrl()); loadUrl.append("&context="); loadUrl.append(MOCK_CONTEXT); assertEquals(loadUrl.toString(), assets.getLoadUrl()); assertEquals(application.getUrl() + DEFAULT_LOGO_IMG, assets.getIconUrl()); }
public static AppStoreWrapper build(Application application, String domain, String configurationId, String botUserId) throws MalformedURLException { AppStoreWrapper app = new AppStoreWrapper(); app.setAppGroupId(application.getComponent()); app.setName(application.getName()); app.setType(INTEGRATION_TYPE); app.setDescription(application.getDescription()); app.setPublisher(application.getPublisher()); app.setAssets(buildAssetWrapper(application, configurationId, botUserId)); app.setDomain(domain); app.setVersion(VERSION); app.setEnabled(true); app.setSymphonyManaged(true); AppStoreSettingsWrapper settingsWrapper = new AppStoreSettingsWrapper(); settingsWrapper.setInstall(application.isAutoInstall()); settingsWrapper.setEnabled(application.isEnabled()); settingsWrapper.setVisible(application.isVisible()); settingsWrapper.setAppType(BUILT_IN); app.setSettings(settingsWrapper); return app; }
AppStoreBuilder { public static AppStoreWrapper build(Application application, String domain, String configurationId, String botUserId) throws MalformedURLException { AppStoreWrapper app = new AppStoreWrapper(); app.setAppGroupId(application.getComponent()); app.setName(application.getName()); app.setType(INTEGRATION_TYPE); app.setDescription(application.getDescription()); app.setPublisher(application.getPublisher()); app.setAssets(buildAssetWrapper(application, configurationId, botUserId)); app.setDomain(domain); app.setVersion(VERSION); app.setEnabled(true); app.setSymphonyManaged(true); AppStoreSettingsWrapper settingsWrapper = new AppStoreSettingsWrapper(); settingsWrapper.setInstall(application.isAutoInstall()); settingsWrapper.setEnabled(application.isEnabled()); settingsWrapper.setVisible(application.isVisible()); settingsWrapper.setAppType(BUILT_IN); app.setSettings(settingsWrapper); return app; } }
AppStoreBuilder { public static AppStoreWrapper build(Application application, String domain, String configurationId, String botUserId) throws MalformedURLException { AppStoreWrapper app = new AppStoreWrapper(); app.setAppGroupId(application.getComponent()); app.setName(application.getName()); app.setType(INTEGRATION_TYPE); app.setDescription(application.getDescription()); app.setPublisher(application.getPublisher()); app.setAssets(buildAssetWrapper(application, configurationId, botUserId)); app.setDomain(domain); app.setVersion(VERSION); app.setEnabled(true); app.setSymphonyManaged(true); AppStoreSettingsWrapper settingsWrapper = new AppStoreSettingsWrapper(); settingsWrapper.setInstall(application.isAutoInstall()); settingsWrapper.setEnabled(application.isEnabled()); settingsWrapper.setVisible(application.isVisible()); settingsWrapper.setAppType(BUILT_IN); app.setSettings(settingsWrapper); return app; }  }
AppStoreBuilder { public static AppStoreWrapper build(Application application, String domain, String configurationId, String botUserId) throws MalformedURLException { AppStoreWrapper app = new AppStoreWrapper(); app.setAppGroupId(application.getComponent()); app.setName(application.getName()); app.setType(INTEGRATION_TYPE); app.setDescription(application.getDescription()); app.setPublisher(application.getPublisher()); app.setAssets(buildAssetWrapper(application, configurationId, botUserId)); app.setDomain(domain); app.setVersion(VERSION); app.setEnabled(true); app.setSymphonyManaged(true); AppStoreSettingsWrapper settingsWrapper = new AppStoreSettingsWrapper(); settingsWrapper.setInstall(application.isAutoInstall()); settingsWrapper.setEnabled(application.isEnabled()); settingsWrapper.setVisible(application.isVisible()); settingsWrapper.setAppType(BUILT_IN); app.setSettings(settingsWrapper); return app; }  static AppStoreWrapper build(Application application, String domain, String configurationId,
      String botUserId); }
AppStoreBuilder { public static AppStoreWrapper build(Application application, String domain, String configurationId, String botUserId) throws MalformedURLException { AppStoreWrapper app = new AppStoreWrapper(); app.setAppGroupId(application.getComponent()); app.setName(application.getName()); app.setType(INTEGRATION_TYPE); app.setDescription(application.getDescription()); app.setPublisher(application.getPublisher()); app.setAssets(buildAssetWrapper(application, configurationId, botUserId)); app.setDomain(domain); app.setVersion(VERSION); app.setEnabled(true); app.setSymphonyManaged(true); AppStoreSettingsWrapper settingsWrapper = new AppStoreSettingsWrapper(); settingsWrapper.setInstall(application.isAutoInstall()); settingsWrapper.setEnabled(application.isEnabled()); settingsWrapper.setVisible(application.isVisible()); settingsWrapper.setAppType(BUILT_IN); app.setSettings(settingsWrapper); return app; }  static AppStoreWrapper build(Application application, String domain, String configurationId,
      String botUserId); static final String BUILT_IN; }