@Test public void testGetDisplayConnectionName() { String result = dataFactoryCore.getDisplayConnectionName( metaData, mock( DataFactory.class ) ); assertThat( result, is( nullValue() ) ); result = dataFactoryCore.getDisplayConnectionName( metaData, element ); assertThat( result, is( equalTo( CONNECTION_NAME ) ) ); }
public String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ) { if ( dataFactory instanceof DataFactoryMetaProvider ) { DataFactoryMetaProvider p = (DataFactoryMetaProvider) dataFactory; return p.getDisplayConnectionName(); } return null; }
DefaultDataFactoryCore implements DataFactoryCore { public String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ) { if ( dataFactory instanceof DataFactoryMetaProvider ) { DataFactoryMetaProvider p = (DataFactoryMetaProvider) dataFactory; return p.getDisplayConnectionName(); } return null; } }
DefaultDataFactoryCore implements DataFactoryCore { public String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ) { if ( dataFactory instanceof DataFactoryMetaProvider ) { DataFactoryMetaProvider p = (DataFactoryMetaProvider) dataFactory; return p.getDisplayConnectionName(); } return null; } DefaultDataFactoryCore(); }
DefaultDataFactoryCore implements DataFactoryCore { public String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ) { if ( dataFactory instanceof DataFactoryMetaProvider ) { DataFactoryMetaProvider p = (DataFactoryMetaProvider) dataFactory; return p.getDisplayConnectionName(); } return null; } DefaultDataFactoryCore(); String[] getReferencedFields( final DataFactoryMetaData metaData, final DataFactory element,
      final String query, final DataRow parameter ); ResourceReference[] getReferencedResources( final DataFactoryMetaData metaData, final DataFactory element,
      final ResourceManager resourceManager, final String query, final DataRow parameter ); String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ); Object getQueryHash( final DataFactoryMetaData dataFactoryMetaData, final DataFactory dataFactory,
      final String queryName, final DataRow parameter ); }
DefaultDataFactoryCore implements DataFactoryCore { public String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ) { if ( dataFactory instanceof DataFactoryMetaProvider ) { DataFactoryMetaProvider p = (DataFactoryMetaProvider) dataFactory; return p.getDisplayConnectionName(); } return null; } DefaultDataFactoryCore(); String[] getReferencedFields( final DataFactoryMetaData metaData, final DataFactory element,
      final String query, final DataRow parameter ); ResourceReference[] getReferencedResources( final DataFactoryMetaData metaData, final DataFactory element,
      final ResourceManager resourceManager, final String query, final DataRow parameter ); String getDisplayConnectionName( final DataFactoryMetaData metaData, final DataFactory dataFactory ); Object getQueryHash( final DataFactoryMetaData dataFactoryMetaData, final DataFactory dataFactory,
      final String queryName, final DataRow parameter );  }