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

import com.grayben.riskExtractor.htmlScorer.ScoredText;
import com.grayben.riskExtractor.htmlScorer.ScoringAndFlatteningNodeVisitor;
import com.grayben.tools.testOracle.SystemUnderTest;
import com.grayben.tools.testOracle.testContainer.TestContainer;
import org.jsoup.nodes.Element;
import org.jsoup.select.NodeTraversor;

import java.util.function.Supplier;

/**
 * For a nominated test configuration: generates the test input, SUT and expected output.
 * <p>
 *
 */
public class TestContainerSupplier implements Supplier<TestContainer<AnnotatedElement, ScoredText>> {

    @Override
    public TestContainer<AnnotatedElement, ScoredText> get() {



        //TODO: think about wildcard generics: how to solve problem of SUT(Element) and Oracle(AnnotatedElement): Element = AnnotatedElement
        return new TestContainer.Builder<AnnotatedElement, ScoredText>()
                .begin()
                .systemUnderTest(new SystemUnderTestSupplier().get())
                .oracle(new ActiveOracleSupplier().get())
                .build();

    }
}
@@ -137,252 +137,51 @@
 ben.
-riskExtractor.htmlScorer.ScoringAndFlatteningNodeVisitor;%0Aimport com.grayben.tools.testOracle.SystemUnderTest;%0Aimport com.grayben.tools.testOracle.testContainer.TestContainer;%0Aimport org.jsoup.nodes.Element;%0Aimport org.jsoup.select.NodeTraverso
+tools.testOracle.testContainer.TestContaine
 r;%0A%0A
@@ -506,18 +506,16 @@
 et() %7B%0A%0A
-%0A%0A
         

Remove obsolete imports