use of org.pentaho.di.ui.spoon.delegates.SpoonSlaveDelegate in project pentaho-kettle by pentaho.
the class SharedObjectSyncUtilTest method setUp.
@Before
public void setUp() {
spoon = mock(Spoon.class);
// when( spoon.getRepository() ).thenReturn( spoon.rep );
spoonDelegates = mock(SpoonDelegates.class);
spoonDelegates.jobs = new SpoonJobDelegate(spoon);
spoonDelegates.trans = new SpoonTransformationDelegate(spoon);
spoonDelegates.db = new SpoonDBDelegate(spoon);
spoonDelegates.slaves = new SpoonSlaveDelegate(spoon);
spoonDelegates.partitions = new SpoonPartitionsDelegate(spoon);
spoonDelegates.clusters = new SpoonClustersDelegate(spoon);
spoon.delegates = spoonDelegates;
sharedUtil = new SharedObjectSyncUtil(spoon);
repository = mock(Repository.class);
}
use of org.pentaho.di.ui.spoon.delegates.SpoonSlaveDelegate in project pentaho-kettle by pentaho.
the class SpoonRefreshSlavesSubtreeTest method setUp.
@Before
public void setUp() throws Exception {
spoon = mock(Spoon.class);
spoon.delegates = mock(SpoonDelegates.class);
spoon.delegates.slaves = new SpoonSlaveDelegate(spoon);
TreeItem mockItem = mock(TreeItem.class);
when(spoon.createTreeItem(any(TreeItem.class), anyString(), any(Image.class))).thenReturn(mockItem);
doCallRealMethod().when(spoon).refreshSlavesSubtree(any(TreeItem.class), any(AbstractMeta.class), any(GUIResource.class));
}
Aggregations