package com.grayben.riskExtractor.htmlScorer;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

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

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testToString() throws Exception {

    }

    @Test
    public void testAdd() throws Exception {

    }
}
@@ -141,88 +141,377 @@
 st;%0A
-%0A/**%0A * Created by beng on 28/11/2015.%0A */%0A@Ignore%0Apublic class ScoredTextTest %7B
+import org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport static org.jsoup.helper.Validate.fail;%0A%0A/**%0A * Created by beng on 28/11/2015.%0A */%0A@Ignore%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class ScoredTextTest %7B%0A%0A    private ScoredText scoredTextSUT;%0A%0A    @Mock%0A    public ScoredTextElement scoredTextElementMock;
 %0A%0A  
@@ -555,32 +555,73 @@
 ows Exception %7B%0A
+        scoredTextSUT = new ScoredText();
 %0A    %7D%0A%0A    @Aft
@@ -661,32 +661,61 @@
 ows Exception %7B%0A
+        scoredTextSUT = null;
 %0A    %7D%0A%0A    @Tes
@@ -735,21 +735,26 @@
 void
+%0A   
  test
+_
 ToString
 () t
@@ -749,38 +749,122 @@
 ToString
-() throws Exception %7B%0A
+ReturnsNonNull_WhenNothingWasAdded%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);
 %0A    %7D%0A%0A
@@ -892,38 +892,1137 @@
 void
+%0A   
  test
+_
 Add
-() throws Exception %7B%0A
+ChangesWhatToStringReturns%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_AddThrowsNullPointerException_WhenParamIsNull%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_AddThrowsIllegalArgumentException_WhenParamDoesNotHaveScores%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_AddThrowsIllegalArgumentException_WhenParamDoesNotHaveText%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_AddThrowsIllegalArgumentException_WhenParamHasEmptyText%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_AddThrowsIllegalArgumentException_WhenParamHasEmptyScores%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_GetTextElementReturnsExpectedOutput_OnSimpleInputCase%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);
 %0A   

Add tests