package com.grayben.riskExtractor.htmlScorer;

import com.grayben.tools.testOracle.testContainer.TestContainer;

import java.io.File;
import java.util.function.Supplier;

/**
 * Created by Ben Gray on 19/02/2016.
 */
public class TreeHtmlScorerTestContainerSupplier implements Supplier<TestContainer<File, ScoredText>> {
    @Override
    public TestContainer<File, ScoredText> get() {
        return null;
    }
}

@@ -63,327 +63,1962 @@
 ben.
-tools.testOracle.testContainer.TestContainer;%0A%0Aimport java.io.File;%0Aimport java.util.function.Supplier;%0A%0A/**%0A * Created by Ben Gray on 19/02/2016.%0A */%0Apublic class TreeHtmlScorerTestContainerSupplier implements Supplier%3CTestContainer%3CFile, ScoredText%3E%3E %7B%0A    @Override%0A    public TestContainer%3CFile, ScoredText%3E get() %7B
+riskExtractor.htmlScorer.partScorers.Scorer;%0Aimport com.grayben.riskExtractor.htmlScorer.partScorers.elementScorers.ElementScorerSetFunction;%0Aimport com.grayben.tools.testOracle.SystemUnderTest;%0Aimport com.grayben.tools.testOracle.oracle.active.ActiveOracle;%0Aimport com.grayben.tools.testOracle.testContainer.TestContainer;%0Aimport com.sun.source.tree.Tree;%0Aimport org.jsoup.nodes.Element;%0A%0Aimport java.io.File;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0Aimport java.util.function.Supplier;%0A%0A/**%0A * Created by Ben Gray on 19/02/2016.%0A */%0Apublic class TreeHtmlScorerTestContainerSupplier implements Supplier%3CTestContainer%3CFile, ScoredText%3E%3E %7B%0A    @Override%0A    public TestContainer%3CFile, ScoredText%3E get() %7B%0A        return new TestContainer.Builder%3CFile, ScoredText%3E()%0A                .begin()%0A                .systemUnderTest(systemUnderTest())%0A                .oracle(activeOracle())%0A                .build();%0A    %7D%0A%0A    private ActiveOracle%3C? super File, ? extends ScoredText%3E activeOracle() %7B%0A        return new ActiveOracle%3CFile, ScoredText%3E() %7B%0A            @Override%0A            public ScoredText apply(File input) %7B%0A                Set%3CElementScorerSetFunction.Content%3E contents = new HashSet%3C%3E();%0A                contents.add(ElementScorerSetFunction.Content.EMPHASIS_ELEMENT_SCORER);%0A                contents.add(ElementScorerSetFunction.Content.SEGMENTATION_ELEMENT_SCORER);%0A                Set%3CScorer%3CElement%3E%3E elementScorerSet = new ElementScorerSetFunction().apply(contents);%0A                //TODO: share nv setup with both test suites%0A                ScoringAndFlatteningNodeVisitor nv = new ScoringAndFlatteningNodeVisitor(elementScorerSet);%0A                TreeHtmlScorer htmlScorer = new TreeHtmlScorer(nv);%0A                htmlScorer.scoreHtml(input, ???)%0A            %7D%0A        %7D;%0A    %7D%0A%0A    private SystemUnderTest%3C? super File, ? extends ScoredText%3E systemUnderTest() %7B%0A        TreeHtmlScorer treeHtmlScorer = new TreeHtmlScorer()
 %0A   

Use TestContainer and ACtiveOracle