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.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;

/**
 * Created by beng on 28/11/2015.
 */
@Ignore
@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_ScoreReturnsInteger_WhenArgumentIsNonNull() throws Exception {
        Mockito.when(tagScorerMock.score(Mockito.any())).thenReturn(1);

        Integer returned = elementScorerSUT.score(elementToBeScoredMock);

        assert returned.getClass() == Integer.class;
    }

    @Override
    @Test
    public void test_ScoreGivesExpectedResult_WhenSimpleInput() throws Exception {

    }

}
@@ -479,16 +479,62 @@
 unner;%0A%0A
+import static junit.framework.TestCase.fail;%0A%0A
 /**%0A * C
@@ -1656,16 +1656,53 @@
 ption %7B%0A
+        fail(%22Test not implemented%22);
 %0A    %7D%0A%0A

Add fail to ignored unimplemented test case