package com.grayben.riskExtractor.htmlScorer.scorers.elementScorers;

import com.grayben.riskExtractor.htmlScorer.scorers.Scorer;
import com.grayben.riskExtractor.htmlScorer.scorers.ScorerTest;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import static junit.framework.TestCase.fail;

/**
 * Created by beng on 28/11/2015.
 */
@RunWith(MockitoJUnitRunner.class)
public class SegmentationElementScorerTest
        extends ScorerTest<Element> {

    SegmentationElementScorer elementScorerSUT;

    @Mock
    public Scorer<Tag> tagScorerMock;
    @Mock
    public Element elementToBeScoredMock;

    @Before
    public void setUp() throws Exception {
        elementScorerSUT = new SegmentationElementScorer(tagScorerMock);
        super.setScorerSUT(elementScorerSUT);
        super.setArgumentToBeScoredMock(elementToBeScoredMock);
        super.setUp();
    }

    @After
    public void tearDown() throws Exception {
        elementScorerSUT = null;
        super.tearDown();
    }

    @Override
    @Test
    public void test_ScoreGivesExpectedResult_WhenSimpleInput() throws Exception {
        fail("This test has not been implemented");
    }

}
@@ -401,80 +401,62 @@
 ito.
-runners.MockitoJUnitRunner
+Mockito
 ;%0A
-%0A
 import 
-static junit.framework.TestCase.fail
+org.mockito.runners.MockitoJUnitRunner
 ;%0A%0A/
@@ -1150,24 +1150,340 @@
 n();%0A    %7D%0A%0A
+    @Override%0A    @Test%0A    public void test_ScoreReturnsInteger_WhenArgumentIsNonNull() throws Exception %7B%0A        Mockito.when(tagScorerMock.score(Mockito.any())).thenReturn(1);%0A%0A        Integer returned = elementScorerSUT.score(elementToBeScoredMock);%0A%0A        assert returned.getClass() == Integer.class;%0A    %7D%0A%0A
     @Overrid
@@ -1581,59 +1581,8 @@
 n %7B%0A
-        fail(%22This test has not been implemented%22);
 %0A   

Implement abstract basic score null check