package com.grayben.riskExtractor.headingMarker;

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

import static org.junit.Assert.*;

/**
 * Created by beng on 28/11/2015.
 */
public abstract class MarkedTextTest {



    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testSubselection() throws Exception {

    }
}
@@ -54,94 +54,270 @@
 ort 
-org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Ignore;%0Aimport org.junit.Te
+com.grayben.riskExtractor.headingMarker.elector.ElectedTextList;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport java.util.Li
 st;%0A
@@ -394,16 +394,51 @@
 15.%0A */%0A
+@RunWith(MockitoJUnitRunner.class)%0A
 public a
@@ -473,65 +473,199 @@
  %7B%0A%0A
-%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A
+    @Mock%0A    ElectedTextList electedTextListMock;%0A%0A    MarkedText markedText;%0A    @Before%0A    public void setUp() throws Exception %7B%0A        markedText = new MarkedText(electedTextListMock);
 %0A   
@@ -763,16 +763,17 @@
 oid test
+_
 Subselec
@@ -776,38 +776,162 @@
 election
-() throws Exception %7B%0A
+s_ReturnNonNull_Always() throws Exception %7B%0A        List%3CString%3E subselections = markedText.subselections();%0A        assertNotNull(subselections);
 %0A    %7D%0A%7D

Write test