package com.grayben.riskExtractor.htmlScorer;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;

import static junit.framework.TestCase.fail;

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

    @Before
    public void setUp() throws Exception {
        super.setUp();
        setHtmlScorer(new TreeHtmlScorer());
    }

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

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

    @Override
    @Test
    public void test_ScoreHtmlReturnsExpected_WhenTextInputIsComplicated
            () throws Exception {
        fail("Test not implemented");
    }
}
@@ -636,32 +636,36 @@
 %0A    public void
+%0A   
  test_ScoreHtmlR
@@ -701,16 +701,16 @@
 sSimple%0A
-
         
@@ -819,16 +819,20 @@
 lic void
+%0A   
  test_Sc
@@ -958,10 +958,515 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void%0A    test_ScoreHtmlThrowsNullPointerException_WhenUrlIsNull%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_ScoreHtmlThrowsNullPointerException_WhenHtmlFileIsNull%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D%0A%0A    @Test%0A    public void%0A    test_ScoreHtmlThrowsNullPointerException_WhenCharsetNameIsNull%0A            () throws Exception %7B%0A        fail(%22Test not implemented%22);%0A    %7D
 %0A%7D

Add tests for null check