@Test public void testApply( ) { when( sourceConfig.getRootPath( ) ).thenReturn( ROOT_PATH_URI ); Optional< Source > result = executor.apply( sourceConfig ); assertTrue( result.isPresent( ) ); assertEquals( ROOT_PATH, result.get( ).getPath( ) ); }
@Override public Optional< Source > apply( LocalSourceConfig localSourceConfig ) { Path path = Paths.get( URI.create( localSourceConfig.getRootPath() ) ); return Optional.of( new LocalSource( path ) ); }
LocalSourceConfigExecutor implements FunctionConfigExecutor< LocalSourceConfig, Source > { @Override public Optional< Source > apply( LocalSourceConfig localSourceConfig ) { Path path = Paths.get( URI.create( localSourceConfig.getRootPath() ) ); return Optional.of( new LocalSource( path ) ); } }
LocalSourceConfigExecutor implements FunctionConfigExecutor< LocalSourceConfig, Source > { @Override public Optional< Source > apply( LocalSourceConfig localSourceConfig ) { Path path = Paths.get( URI.create( localSourceConfig.getRootPath() ) ); return Optional.of( new LocalSource( path ) ); } LocalSourceConfigExecutor( ); }
LocalSourceConfigExecutor implements FunctionConfigExecutor< LocalSourceConfig, Source > { @Override public Optional< Source > apply( LocalSourceConfig localSourceConfig ) { Path path = Paths.get( URI.create( localSourceConfig.getRootPath() ) ); return Optional.of( new LocalSource( path ) ); } LocalSourceConfigExecutor( ); @Override Optional< Source > apply( LocalSourceConfig localSourceConfig ); @Override Class< ? extends Config > executeFor( ); @Override String outputId( ); }
LocalSourceConfigExecutor implements FunctionConfigExecutor< LocalSourceConfig, Source > { @Override public Optional< Source > apply( LocalSourceConfig localSourceConfig ) { Path path = Paths.get( URI.create( localSourceConfig.getRootPath() ) ); return Optional.of( new LocalSource( path ) ); } LocalSourceConfigExecutor( ); @Override Optional< Source > apply( LocalSourceConfig localSourceConfig ); @Override Class< ? extends Config > executeFor( ); @Override String outputId( );  }