package com.grayben.riskExtractor.htmlScorer.nodeVisitor.setup;

import com.grayben.riskExtractor.htmlScorer.ScoredText;
import com.grayben.tools.testOracle.SystemUnderTest;
import org.apache.commons.lang3.NotImplementedException;
import org.jsoup.nodes.Element;

import java.util.function.Supplier;

/**
 * Created by Ben Gray on 16/02/2016.
 */
public class SystemUnderTestSupplier
        implements Supplier<SystemUnderTest<Element, ScoredText>> {


    @Override
    public SystemUnderTest<Element, ScoredText> get() {
        throw new NotImplementedException("This class is not implemented");
    }
}

@@ -137,129 +137,188 @@
 ben.
-tools.testOracle.SystemUnderTest;%0Aimport org.apache.commons.lang3.NotImplementedException;%0Aimport org.jsoup.nodes.Element
+riskExtractor.htmlScorer.ScoringAndFlatteningNodeVisitor;%0Aimport com.grayben.tools.testOracle.SystemUnderTest;%0Aimport org.jsoup.nodes.Element;%0Aimport org.jsoup.select.NodeTraversor
 ;%0A%0Ai
@@ -576,24 +576,25 @@
 get() %7B%0A
+%0A
         
 throw ne
@@ -589,74 +589,501 @@
     
-throw new NotImplementedException(%22This class is not implemented%22)
+Supplier%3CScoringAndFlatteningNodeVisitor%3E scoringAndFlatteningNodeVisitorSupplier%0A                = () -%3E new ScoringAndFlatteningNodeVisitor(SetupHelpers.configureElementScorerSet());%0A%0A        return element -%3E %7B%0A            ScoringAndFlatteningNodeVisitor nodeVisitor = scoringAndFlatteningNodeVisitorSupplier.get();%0A            NodeTraversor nodeTraversor = new NodeTraversor(nodeVisitor);%0A            nodeTraversor.traverse(element);%0A            return nodeVisitor.getFlatText();%0A        %7D
 ;%0A  

Implement SUT Supplier