use of org.pentaho.di.ui.repo.controller.RepositoryConnectController in project pentaho-kettle by pentaho.
the class RepositoryConnectControllerTest method setUp.
@Before
public void setUp() {
controller = new RepositoryConnectController(pluginRegistry, () -> spoon, repositoriesMeta);
when(pluginInterface.getName()).thenReturn(PLUGIN_NAME);
when(pluginInterface.getIds()).thenReturn(new String[] { ID });
when(pluginInterface.getDescription()).thenReturn(PLUGIN_DESCRIPTION);
List<PluginInterface> plugins = new ArrayList<>();
plugins.add(pluginInterface);
when(pluginRegistry.getPlugins(RepositoryPluginType.class)).thenReturn(plugins);
when(repositoryMeta.getId()).thenReturn(ID);
when(repositoryMeta.getName()).thenReturn(PLUGIN_NAME);
when(repositoryMeta.getDescription()).thenReturn(PLUGIN_DESCRIPTION);
}
use of org.pentaho.di.ui.repo.controller.RepositoryConnectController in project pentaho-kettle by pentaho.
the class RepositorySessionTimeoutHandlerTest method before.
@Before
public void before() {
repository = mock(ReconnectableRepository.class);
repositoryConnectController = mock(RepositoryConnectController.class);
timeoutHandler = new RepositorySessionTimeoutHandler(repository, repositoryConnectController);
}
Aggregations