use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryConnectionDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepository method init.
private void init() {
// Create the delegates...
//
this.transDelegate = new KettleDatabaseRepositoryTransDelegate(this);
this.jobDelegate = new KettleDatabaseRepositoryJobDelegate(this);
this.databaseDelegate = new KettleDatabaseRepositoryDatabaseDelegate(this);
this.slaveServerDelegate = new KettleDatabaseRepositorySlaveServerDelegate(this);
this.clusterSchemaDelegate = new KettleDatabaseRepositoryClusterSchemaDelegate(this);
this.partitionSchemaDelegate = new KettleDatabaseRepositoryPartitionSchemaDelegate(this);
this.directoryDelegate = new KettleDatabaseRepositoryDirectoryDelegate(this);
this.connectionDelegate = new KettleDatabaseRepositoryConnectionDelegate(this, repositoryMeta.getConnection());
this.userDelegate = new KettleDatabaseRepositoryUserDelegate(this);
this.conditionDelegate = new KettleDatabaseRepositoryConditionDelegate(this);
this.valueDelegate = new KettleDatabaseRepositoryValueDelegate(this);
this.notePadDelegate = new KettleDatabaseRepositoryNotePadDelegate(this);
this.stepDelegate = new KettleDatabaseRepositoryStepDelegate(this);
this.jobEntryDelegate = new KettleDatabaseRepositoryJobEntryDelegate(this);
this.metaStoreDelegate = new KettleDatabaseRepositoryMetaStoreDelegate(this);
this.creationHelper = new KettleDatabaseRepositoryCreationHelper(this);
}
use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryConnectionDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepositoryTest method setUp.
@Before
public void setUp() {
repo = spy(new KettleDatabaseRepository());
repo.setRepositoryMeta(new KettleDatabaseRepositoryMeta("myId", "myName", "myDescription", new DatabaseMeta()));
repo.connectionDelegate = spy(new KettleDatabaseRepositoryConnectionDelegate(repo, new DatabaseMeta()));
}
use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryConnectionDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepositoryCreationHelperTest method setUp.
@Before
public void setUp() throws Exception {
KettleLogStore.init();
KettleDatabaseRepositoryConnectionDelegate delegate = mock(KettleDatabaseRepositoryConnectionDelegate.class);
repository = mock(KettleDatabaseRepository.class);
repository.connectionDelegate = delegate;
helper = new KettleDatabaseRepositoryCreationHelper(repository);
when(repository.getLog()).thenReturn(log);
}
Aggregations