use of org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties.SessionStoreMaxWaitWriteLockProperty 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));
}
Aggregations