Search in sources :

Example 1 with SessionStoreMaxWaitAllShutdownProperty

use of org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitAllShutdownProperty in project scout.rt by eclipse.

the class UiSessionTest method before.

@Before
public void before() {
    m_oldRunContext = RunContext.CURRENT.get();
    // Because this test must be executed by a bare JUnit runner (see JavaDoc of test class).
    RunContext.CURRENT.set(RunContexts.empty());
    m_beans = TestingUtility.registerBeans(new BeanMetaData(JobCompletionDelayOnSessionShutdown.class).withProducer(new IBeanInstanceProducer<JobCompletionDelayOnSessionShutdown>() {

        @Override
        public JobCompletionDelayOnSessionShutdown produce(IBean<JobCompletionDelayOnSessionShutdown> bean) {
            return new JobCompletionDelayOnSessionShutdown() {

                @Override
                protected Long getDefaultValue() {
                    return 0L;
                }
            };
        }
    }), new BeanMetaData(SessionStoreHousekeepingDelayProperty.class).withInitialInstance(new SessionStoreHousekeepingDelayProperty() {

        @Override
        protected Integer getDefaultValue() {
            return 0;
        }
    }), new BeanMetaData(SessionStoreHousekeepingMaxWaitShutdownProperty.class).withInitialInstance(new SessionStoreHousekeepingMaxWaitShutdownProperty() {

        @Override
        protected Integer getDefaultValue() {
            return 1;
        }
    }), new BeanMetaData(SessionStoreMaxWaitWriteLockProperty.class).withInitialInstance(new SessionStoreMaxWaitWriteLockProperty() {

        @Override
        protected Integer getDefaultValue() {
            return 1;
        }
    }), new BeanMetaData(SessionStoreMaxWaitAllShutdownProperty.class).withInitialInstance(new SessionStoreMaxWaitAllShutdownProperty() {

        @Override
        protected Integer getDefaultValue() {
            return 1;
        }
    }), new BeanMetaData(TestEnvironmentClientSession.class));
}
Also used : SessionStoreMaxWaitWriteLockProperty(org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitWriteLockProperty) SessionStoreMaxWaitAllShutdownProperty(org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitAllShutdownProperty) BeanMetaData(org.eclipse.scout.rt.platform.BeanMetaData) SessionStoreHousekeepingMaxWaitShutdownProperty(org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreHousekeepingMaxWaitShutdownProperty) SessionStoreHousekeepingDelayProperty(org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreHousekeepingDelayProperty) JobCompletionDelayOnSessionShutdown(org.eclipse.scout.rt.client.ClientConfigProperties.JobCompletionDelayOnSessionShutdown) Before(org.junit.Before)

Aggregations

JobCompletionDelayOnSessionShutdown (org.eclipse.scout.rt.client.ClientConfigProperties.JobCompletionDelayOnSessionShutdown)1 BeanMetaData (org.eclipse.scout.rt.platform.BeanMetaData)1 SessionStoreHousekeepingDelayProperty (org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreHousekeepingDelayProperty)1 SessionStoreHousekeepingMaxWaitShutdownProperty (org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreHousekeepingMaxWaitShutdownProperty)1 SessionStoreMaxWaitAllShutdownProperty (org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitAllShutdownProperty)1 SessionStoreMaxWaitWriteLockProperty (org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitWriteLockProperty)1 Before (org.junit.Before)1