use of org.pentaho.di.repository.ObjectId in project pentaho-kettle by pentaho.
the class PurRepositoryStressTest method testLockSaveSlaverSchema.
public void testLockSaveSlaverSchema() throws Exception {
ObjectId objId = mock(ObjectId.class);
doReturn("id1").when(objId).getId();
SlaveServer rei = mock(SlaveServer.class);
doReturn(RepositoryObjectType.SLAVE_SERVER).when(rei).getRepositoryElementType();
doReturn("slaveID").when(rei).getName();
doReturn(objId).when(rei).getObjectId();
doReturn(rei).when(rei).clone();
Calendar calendar = mock(Calendar.class);
purRepository.save(rei, "vComment", calendar, mock(ProgressMonitorListener.class), false);
}
use of org.pentaho.di.repository.ObjectId in project pentaho-kettle by pentaho.
the class PurRepositoryStressTest method testLockLoadTransformation2.
public void testLockLoadTransformation2() throws Exception {
ObjectId objId = mock(ObjectId.class);
doReturn("id1").when(objId).getId();
assertNotNull(purRepository.loadTransformation(objId, "v3"));
verify(objId, times(2)).getId();
}
use of org.pentaho.di.repository.ObjectId in project pentaho-kettle by pentaho.
the class PurRepositoryStressTest method testLockLoadSlaveServer.
public void testLockLoadSlaveServer() throws Exception {
ObjectId objId = mock(ObjectId.class);
doReturn("id1").when(objId).getId();
assertNotNull(purRepository.loadSlaveServer(objId, "v1"));
verify(objId, times(3)).getId();
}
use of org.pentaho.di.repository.ObjectId in project pentaho-kettle by pentaho.
the class PurRepositoryStressTest method testLocksRenameRepositoryDirectory.
public void testLocksRenameRepositoryDirectory() throws Exception {
ObjectId objId = mock(ObjectId.class);
doReturn("id1").when(objId).getId();
purRepository.renameRepositoryDirectory(objId, null, "newName", true);
verify(objId, times(2)).getId();
}
use of org.pentaho.di.repository.ObjectId in project pentaho-kettle by pentaho.
the class UIEETransformation method renameTransformation.
@Override
protected ObjectId renameTransformation(ObjectId objectId, RepositoryDirectory directory, String name) throws Exception {
ObjectId id = super.renameTransformation(objectId, directory, name);
refreshRevisions();
return id;
}
Aggregations