use of org.pentaho.di.ui.repo.timeout.SessionTimeoutHandler in project pentaho-kettle by pentaho.
the class MetaStoreSessionTimeoutHandlerTest method before.
@Before
public void before() {
metaStore = mock(IMetaStore.class);
sessionTimeoutHandler = mock(SessionTimeoutHandler.class);
metaStoresessionTimeoutHandler = new MetaStoreSessionTimeoutHandler(metaStore, sessionTimeoutHandler);
}
use of org.pentaho.di.ui.repo.timeout.SessionTimeoutHandler in project pentaho-kettle by pentaho.
the class RepositorySessionTimeoutHandlerTest method wrapMetastoreWithTimeoutHandler.
@Test
public void wrapMetastoreWithTimeoutHandler() throws Throwable {
IMetaStore metaStore = mock(IMetaStore.class);
doThrow(KettleRepositoryLostException.class).when(metaStore).createNamespace(any());
SessionTimeoutHandler sessionTimeoutHandler = mock(SessionTimeoutHandler.class);
IMetaStore wrappedMetaStore = RepositorySessionTimeoutHandler.wrapMetastoreWithTimeoutHandler(metaStore, sessionTimeoutHandler);
wrappedMetaStore.createNamespace("TEST_NAMESPACE");
verify(sessionTimeoutHandler).handle(any(), any(), any(), any());
}
use of org.pentaho.di.ui.repo.timeout.SessionTimeoutHandler in project pentaho-kettle by pentaho.
the class RepositoryServiceSessionTimeoutHandlerTest method before.
@Before
public void before() {
repositoryService = mock(RepositorySecurityManager.class);
sessionTimeoutHandler = mock(SessionTimeoutHandler.class);
metaStoresessionTimeoutHandler = new RepositoryServiceSessionTimeoutHandler(repositoryService, sessionTimeoutHandler);
}
Aggregations