@Test public void testEditNamedCluster() { String edit = "edit"; when( hadoopClusterDelegate.editNamedCluster( eq( iMetaStore ), nameMatches( namedCluster ), eq( shell ) ) ) .thenReturn( edit ); assertEquals( edit, hadoopClusterDelegateBridge.editNamedCluster( iMetaStore, namedCluster, shell ) ); }
@Override public String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ) { return delegate.editNamedCluster( metaStore, new NamedClusterBridgeImpl( namedCluster ), shell ); }
HadoopClusterDelegateBridgeImpl implements HadoopClusterDelegate { @Override public String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ) { return delegate.editNamedCluster( metaStore, new NamedClusterBridgeImpl( namedCluster ), shell ); } }
HadoopClusterDelegateBridgeImpl implements HadoopClusterDelegate { @Override public String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ) { return delegate.editNamedCluster( metaStore, new NamedClusterBridgeImpl( namedCluster ), shell ); } HadoopClusterDelegateBridgeImpl( HadoopClusterDelegateImpl delegate ); }
HadoopClusterDelegateBridgeImpl implements HadoopClusterDelegate { @Override public String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ) { return delegate.editNamedCluster( metaStore, new NamedClusterBridgeImpl( namedCluster ), shell ); } HadoopClusterDelegateBridgeImpl( HadoopClusterDelegateImpl delegate ); @Override String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ); @Override String newNamedCluster( VariableSpace variableSpace, IMetaStore metaStore, Shell shell ); @Override void dupeNamedCluster( IMetaStore metaStore, NamedCluster nc, Shell shell ); @Override void delNamedCluster( IMetaStore metaStore, NamedCluster namedCluster ); }
HadoopClusterDelegateBridgeImpl implements HadoopClusterDelegate { @Override public String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ) { return delegate.editNamedCluster( metaStore, new NamedClusterBridgeImpl( namedCluster ), shell ); } HadoopClusterDelegateBridgeImpl( HadoopClusterDelegateImpl delegate ); @Override String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ); @Override String newNamedCluster( VariableSpace variableSpace, IMetaStore metaStore, Shell shell ); @Override void dupeNamedCluster( IMetaStore metaStore, NamedCluster nc, Shell shell ); @Override void delNamedCluster( IMetaStore metaStore, NamedCluster namedCluster );  }