NamedClusterResolver { public NamedCluster resolveNamedCluster( String fileName ) { return resolveNamedCluster( fileName, null ); } NamedClusterResolver( NamedClusterServiceLocator namedClusterServiceLocator,
                               NamedClusterService namedClusterService, MetastoreLocatorOsgi metaStore ); NamedCluster resolveNamedCluster( String fileName ); NamedCluster resolveNamedCluster( String fileName, String embeddedMetastoreKey ); NamedClusterServiceLocator getNamedClusterServiceLocator();  }
@Test public void windowsFilePathsAreHandled() { assertNull( namedClusterResolver.resolveNamedCluster( "C:/path/to some/file" ) ); verify( kettleLoggingEventListener, times( 0 ) ).eventAdded( any() ); }
@Test public void testNamedClusterByName() { NamedCluster cluster = namedClusterResolver.resolveNamedCluster( "hc: assertEquals( namedCluster, cluster ); cluster = namedClusterResolver.resolveNamedCluster( "hc: assertNull( cluster ); }
@Test public void testNamedClusterByHost() { NamedCluster cluster = namedClusterResolver.resolveNamedCluster( "hdfs: assertEquals( namedCluster, cluster ); }