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

import com.grayben.riskExtractor.htmlScorer.partScorers.Scorer;
import com.grayben.riskExtractor.htmlScorer.partScorers.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;

import static junit.framework.TestCase.fail;

/**
 * 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_WhenArgumentIsNotEmpty() 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 {
        fail("Test not implemented");
    }

    @Test
    public void
    test_ScoreThrowsIllegalArgumentException_WhenEmptyInput() throws Exception {
        fail("Test not implemented: decide whether appropriate");
    }

}
@@ -129,16 +129,20 @@
 s.Scorer
+Test
 ;%0Aimport
@@ -187,34 +187,52 @@
 partScorers.
+tag
 Scorer
-Test
+s.TagEmphasisScorer
 ;%0Aimport org
@@ -257,37 +257,8 @@
 nt;%0A
-import org.jsoup.parser.Tag;%0A
 impo
@@ -306,33 +306,8 @@
 re;%0A
-import org.junit.Ignore;%0A
 impo
@@ -387,36 +387,8 @@
 ck;%0A
-import org.mockito.Mockito;%0A
 impo
@@ -431,16 +431,67 @@
 unner;%0A%0A
+import static junit.framework.Assert.assertEquals;%0A
 import s
@@ -574,16 +574,8 @@
  */%0A
-@Ignore%0A
 @Run
@@ -740,56 +740,8 @@
 T;%0A%0A
-    @Mock%0A    public Scorer%3CTag%3E tagScorerMock;%0A
     
@@ -836,32 +836,141 @@
 ows Exception %7B%0A
+        TagEmphasisScorer tagScorer%0A                = new TagEmphasisScorer(TagEmphasisScorer.defaultMap());%0A
         elementS
@@ -1019,20 +1019,16 @@
 agScorer
-Mock
 );%0A     
@@ -1402,81 +1402,8 @@
 n %7B%0A
-        Mockito.when(tagScorerMock.score(Mockito.any())).thenReturn(1);%0A%0A
     
@@ -1487,16 +1487,37 @@
   assert
+Equals(Integer.class,
  returne
@@ -1532,25 +1532,9 @@
 ss()
- == Integer.class
+)
 ;%0A  

Remove @Ignore annotation, simplify setup