ParameterDependencyGraph { public Set<String> getAllParameterNames() { return allParameterNames; } 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 testGetAllParameterNames() { Set<String> paramSet = new HashSet<>(); paramSet.add( "param1" ); paramSet.add( "param2" ); paramSet.add( "param3" ); final ParameterDependencyGraph dependencyGraph = new ParameterDependencyGraph( "param1", "param2", "param3" ); assertEquals( paramSet, dependencyGraph.getAllParameterNames() ); paramSet.add( "param4" ); dependencyGraph.setAllParameterNames( paramSet ); assertEquals( paramSet, dependencyGraph.getAllParameterNames() ); }