ParameterDependencyGraph { public Set<String> getAllDependencies( String... parameterNames ) { return getAllDependencies( Arrays.asList( parameterNames ) ); } ParameterDependencyGraph( final MasterReport report,
                                   final Map<String, ParameterDefinitionEntry> reportParameter,
                                   final ParameterContext parameterContext,
                                   final Map<String, Object> computedParameterValues );   ParameterDependencyGraph( String... allParameterNames ); LinkedHashMap<String, Set<String>> getDependencyGraph(); void setDependencyGraph( LinkedHashMap<String, Set<String>> arg ); Set<String> getAllParameterNames(); void setAllParameterNames( Set<String> allParameterNames ); Set<String> getDependentParameterFor( String parameterName ); Set<String> getAllDependencies( String... parameterNames ); Set<String> getAllDependencies( Iterable<String> parameterNames ); Set<String> getKnownParameter(); boolean doesDependencyExist( String parameterName ); boolean areAllParametersProcessed();  }
@Test public void testGetAllDependencies() { ParameterDependencyGraph paramDepGrap = new ParameterDependencyGraph( "param1", "param2" ); paramDepGrap.setAllParametersProcessed( false ); assertEquals( paramDepGrap.getAllDependencies( "param1" ), asSet( "param1", "param2" ) ); paramDepGrap.setAllParametersProcessed( true ); assertEquals( paramDepGrap.getAllDependencies( asSet( "param1", "param1" ) ), Collections.emptySet() ); }