<commit_before>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");
    }
}<commit_msg>Correct import statement, implement a test<commit_after>package com.grayben.riskExtractor.htmlScorer;

import org.junit.*;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import static junit.framework.TestCase.*;

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

    private ScoredText scoredTextSUT;

    @Rule
    public ExpectedException thrown = ExpectedException.none();

    @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 {
        scoredTextSUT = new ScoredText();

        assertNotNull(scoredTextSUT.toString());
    }

    @Test
    public void
    test_AddChangesWhatToStringReturns
            () throws Exception {
        String beforeAdd = scoredTextSUT.toString();
        scoredTextSUT.add(scoredTextElementMock);
        String afterAdd = scoredTextSUT.toString();

        assertNotSame(beforeAdd, afterAdd);
    }

    @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");
    }
}
{'fraction_non_alphanumeric': 0.07287633796401731, 'fraction_numerical': 0.0036438168982008655, 'mean_word_length': 2.8158123370981754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1566519', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1174, 'n_words': 262}