@Test public void testSetNamedCluster() { org.pentaho.di.core.namedcluster.model.NamedCluster namedCluster = mock( org.pentaho.di.core.namedcluster.model.NamedCluster.class ); String testName = "testName"; when( namedCluster.getName() ).thenReturn( testName ); namedClusterDialogBridge.setNamedCluster( namedCluster ); ArgumentCaptor<NamedCluster> namedClusterArgumentCaptor = ArgumentCaptor.forClass( NamedCluster.class ); verify( delegate ).setNamedCluster( namedClusterArgumentCaptor.capture() ); assertEquals( testName, namedClusterArgumentCaptor.getValue().getName() ); }
@Override public void setNamedCluster( NamedCluster namedCluster ) { delegate.setNamedCluster( new NamedClusterBridgeImpl( namedCluster ) ); }
NamedClusterDialogBridgeImpl implements NamedClusterDialog { @Override public void setNamedCluster( NamedCluster namedCluster ) { delegate.setNamedCluster( new NamedClusterBridgeImpl( namedCluster ) ); } }
NamedClusterDialogBridgeImpl implements NamedClusterDialog { @Override public void setNamedCluster( NamedCluster namedCluster ) { delegate.setNamedCluster( new NamedClusterBridgeImpl( namedCluster ) ); } NamedClusterDialogBridgeImpl( NamedClusterDialogImpl delegate ); }
NamedClusterDialogBridgeImpl implements NamedClusterDialog { @Override public void setNamedCluster( NamedCluster namedCluster ) { delegate.setNamedCluster( new NamedClusterBridgeImpl( namedCluster ) ); } NamedClusterDialogBridgeImpl( NamedClusterDialogImpl delegate ); @Override NamedCluster getNamedCluster(); @Override void setNamedCluster( NamedCluster namedCluster ); @Override void setNewClusterCheck( boolean newClusterCheck ); @Override String open(); }
NamedClusterDialogBridgeImpl implements NamedClusterDialog { @Override public void setNamedCluster( NamedCluster namedCluster ) { delegate.setNamedCluster( new NamedClusterBridgeImpl( namedCluster ) ); } NamedClusterDialogBridgeImpl( NamedClusterDialogImpl delegate ); @Override NamedCluster getNamedCluster(); @Override void setNamedCluster( NamedCluster namedCluster ); @Override void setNewClusterCheck( boolean newClusterCheck ); @Override String open();  }