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

import com.grayben.riskExtractor.htmlScorer.partScorers.ScorerTest;
import org.jsoup.nodes.Element;
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.runners.MockitoJUnitRunner;

import static junit.framework.TestCase.fail;

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

    EmphasisElementScorer emphasisElementScorerSUT;

    @Mock
    public Element elementToBeScoredMock;

    @Before
    public void setUp() throws Exception {
        this.emphasisElementScorerSUT = new EmphasisElementScorer();
        super.setScorerSUT(this.emphasisElementScorerSUT);
        super.setArgumentToBeScoredMock(elementToBeScoredMock);
        super.setUp();
    }

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

    @Override
    @Test
    public void
    test_ScoreReturnsInteger_WhenArgumentIsNotEmpty() throws Exception {
        fail("Test not implemented");
    }

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

    @Test
    public void
    test_ScoreThrowsIllegalArgumentException_WhenEmptyInput() throws Exception {
        fail("Test not implemented: decide whether appropriate");
    }
}
@@ -158,23 +158,121 @@
 p.nodes.
-Element
+Attribute;%0Aimport org.jsoup.nodes.Attributes;%0Aimport org.jsoup.nodes.Element;%0Aimport org.jsoup.parser.Tag
 ;%0Aimport
@@ -318,33 +318,8 @@
 re;%0A
-import org.junit.Ignore;%0A
 impo
@@ -395,16 +395,44 @@
 o.Mock;%0A
+import org.mockito.Mockito;%0A
 import o
@@ -471,16 +471,68 @@
 unner;%0A%0A
+import static junit.framework.Assert.assertNotNull;%0A
 import s
@@ -615,15 +615,8 @@
  */%0A
-@Ignore
 %0A@Ru
@@ -1198,152 +1198,1350 @@
     
-@Override%0A    @Test%0A    public void%0A    test_ScoreReturnsInteger_WhenArgumentIsNotEmpty() throws Exception %7B%0A        fail(%22Test not implemented%22
+private void stubElementToBeScoredMock(Tag tag, Attributes attributes)%7B%0A        Mockito.when(elementToBeScoredMock.tag())%0A                .thenReturn(tag);%0A        Mockito.when(elementToBeScoredMock.attributes())%0A                .thenReturn(attributes);%0A    %7D%0A%0A    private Tag stubTag()%7B%0A        Tag tag = Mockito.mock(Tag.class);%0A        Mockito.when(tag.isEmpty()).thenReturn(false);%0A        Mockito.when(tag.getName()).thenReturn(%22font%22);%0A%0A        return tag;%0A    %7D%0A%0A    private Attribute stubAttribute(String key, String value)%7B%0A        Attribute attribute = Mockito.mock(Attribute.class);%0A        Mockito.when(attribute.getKey()).thenReturn(key);%0A        Mockito.when(attribute.getValue()).thenReturn(value);%0A%0A        return attribute;%0A    %7D%0A%0A    private Attributes stubAttributes()%7B%0A        Attributes attributes = new Attributes();%0A        attributes.put(stubAttribute(%22style%22, %22bold%22));%0A        attributes.put(stubAttribute(%22foo%22, %22bar%22));%0A%0A        return attributes;%0A    %7D%0A%0A    @Override%0A    @Test%0A    public void%0A    test_ScoreReturnsInteger_WhenArgumentIsNotEmpty() throws Exception %7B%0A        Tag tag = stubTag();%0A        Attributes attributes = stubAttributes();%0A%0A        stubElementToBeScoredMock(tag, attributes);%0A%0A        Integer returned = emphasisElementScorerSUT.score(elementToBeScoredMock);%0A%0A        assertNotNull(returned
 );%0A 

Remove @Ignore annotation, implement first test