package com.grayben.riskExtractor.htmlScorer;

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 org.jsoup.helper.Validate.fail;

/**
 * Created by beng on 28/11/2015.
 */
@Ignore
@RunWith(MockitoJUnitRunner.class)
public class ScoredTextTest {

    private ScoredText scoredTextSUT;

    @Mock
    public ScoredTextElement scoredTextElementMock;

    @Before
    public void setUp() throws Exception {
        scoredTextSUT = new ScoredText();
    }

    @After
    public void tearDown() throws Exception {
        scoredTextSUT = null;
    }

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

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

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

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

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

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

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

    @Test
    public void
    test_GetTextElementReturnsExpectedOutput_OnSimpleInputCase
            () throws Exception {
        fail("Test not implemented");
    }
}
@@ -57,21 +57,17 @@
 g.junit.
-After
+*
 ;%0Aimport
@@ -81,62 +81,31 @@
 nit.
-Before;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test
+rules.ExpectedException
 ;%0Aim
@@ -226,38 +226,34 @@
 tic 
-org.jsoup.helper.Validate.fail
+junit.framework.TestCase.*
 ;%0A%0A/
@@ -297,16 +297,8 @@
  */%0A
-@Ignore%0A
 @Run
@@ -398,16 +398,91 @@
 xtSUT;%0A%0A
+    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A
     @Moc
@@ -858,35 +858,89 @@
     
-fail(%22Test not implemented%22
+scoredTextSUT = new ScoredText();%0A%0A        assertNotNull(scoredTextSUT.toString()
 );%0A 
@@ -1056,35 +1056,197 @@
     
-fail(%22Test not implemented%22
+String beforeAdd = scoredTextSUT.toString();%0A        scoredTextSUT.add(scoredTextElementMock);%0A        String afterAdd = scoredTextSUT.toString();%0A%0A        assertNotSame(beforeAdd, afterAdd
 );%0A 

Correct import statement, implement a test