package com.grayben.riskExtractor.htmlScorer.scorers;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import static org.junit.Assert.*;

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

    public Scorer scorerSUT;

    @Mock
    public T scoredArgumentMock;

    @Rule
    ExpectedException thrown = ExpectedException.none();

    @Before
    public void setUp(Scorer scorer) throws Exception {
        scorerSUT = scorer;
    }

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

    @Test
    public void test_ScoreReturnsInteger_WhenArgumentIsNonNull
            () throws Exception {
        scorerSUT.score(scoredArgumentMock);
    }

    @Test
    public void test_ScoreThrowsNullPointerException_WhenArgumentIsNull
            () throws Exception {
        thrown.expect(NullPointerException.class);

        scorerSUT.score(null);
    }

    @Test
    public void test_GetScoreLabelReturnsNonNull
            () throws Exception {
        assertNotNull(scorerSUT.getScoreLabel());
    }

    @Test
    public void test_GetScoreLabelReturnsNonEmptyString
            () throws Exception {
        assertNotEquals("", scorerSUT.getScoreLabel());
    }
}
@@ -322,17 +322,77 @@
 .Assert.
-*
+assertNotEquals;%0Aimport static org.junit.Assert.assertNotNull
 ;%0A%0A/**%0A 
@@ -502,20 +502,115 @@
    p
-ublic Scorer
+rivate Scorer%3CT%3E scorerSUT;%0A%0A    protected void setScorerSUT(Scorer%3CT%3E scorerSUT)%7B%0A        this.scorerSUT =
  sco
@@ -612,24 +612,30 @@
 = scorerSUT;
+%0A    %7D
 %0A%0A    @Mock%0A
@@ -682,16 +682,23 @@
 ule%0A    
+public 
 Expected
@@ -781,21 +781,8 @@
 tUp(
-Scorer scorer
 ) th
@@ -802,36 +802,8 @@
 n %7B%0A
-        scorerSUT = scorer;%0A
     

Use test annotations correctly, make SUT private field