DefaultDeploymentConfiguration extends PropertyDeploymentConfiguration { @Override public String getPushURL() { return pushURL; } DefaultDeploymentConfiguration(Class<?> systemPropertyBaseClass,
            Properties initParameters); @Override boolean isProductionMode(); @Override boolean useV14Bootstrap(); @Override boolean isRequestTiming(); @Override boolean isXsrfProtectionEnabled(); @Override int getHeartbeatInterval(); @Override int getMaxMessageSuspendTimeout(); @Override int getWebComponentDisconnect(); @Override boolean isCloseIdleSessions(); @Override boolean isSyncIdCheckEnabled(); @Override boolean isSendUrlsAsParameters(); @Override PushMode getPushMode(); @Override String getPushURL(); static final String NOT_PRODUCTION_MODE_INFO; static final String NOT_PRODUCTION_MODE_WARNING; static final String WARNING_V14_BOOTSTRAP; static final String WARNING_V15_BOOTSTRAP; static final String WARNING_XSRF_PROTECTION_DISABLED; static final String WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC; static final String WARNING_PUSH_MODE_NOT_RECOGNIZED; static final int DEFAULT_HEARTBEAT_INTERVAL; static final int DEFAULT_MAX_MESSAGE_SUSPEND_TIMEOUT; static final int DEFAULT_WEB_COMPONENT_DISCONNECT; static final boolean DEFAULT_CLOSE_IDLE_SESSIONS; static final boolean DEFAULT_SYNC_ID_CHECK; static final boolean DEFAULT_SEND_URLS_AS_PARAMETERS; }
@Test public void defaultPushUrl() { Properties initParameters = new Properties(); DefaultDeploymentConfiguration config = createDeploymentConfig( initParameters); assertThat(config.getPushURL(), is("")); }
@Test public void pushUrl() { Properties initParameters = new Properties(); initParameters.setProperty(InitParameters.SERVLET_PARAMETER_PUSH_URL, "foo"); DefaultDeploymentConfiguration config = createDeploymentConfig( initParameters); assertThat(config.getPushURL(), is("foo")); }