package com.grayben.riskExtractor.headingMarker.elector;

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.
 */
@Ignore
public class ElectedTextListTest {

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testGetNominees() throws Exception {

    }

    @Test
    public void testGetElectees() throws Exception {

    }
}
@@ -51,16 +51,78 @@
 ector;%0A%0A
+import com.grayben.riskExtractor.headingMarker.TextCandidate;%0A
 import o
@@ -209,16 +209,93 @@
 it.Test;
+%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0A%0Aimport java.util.List;
 %0A%0Aimport
@@ -369,16 +369,8 @@
  */%0A
-@Ignore%0A
 publ
@@ -409,59 +409,359 @@
     
-@Before%0A    public void setUp() throws Exception %7B%0A
+ElectedTextList electedTextList;%0A%0A    @Mock%0A    protected List%3CString%3E stringListMock;%0A%0A    @Mock%0A    protected List%3CTextCandidate%3E nomineesMock;%0A%0A    @Mock%0A    protected List%3CTextCandidate%3E electeesMock;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        electedTextList = new ElectedTextList(stringListMock, nomineesMock, electeesMock);
 %0A   
@@ -859,16 +859,17 @@
 oid test
+_
 GetNomin
@@ -871,38 +871,250 @@
 Nominees
-() throws Exception %7B%0A
+_ReturnsNonNull_Always() throws Exception %7B%0A        //setup data%0A%0A        //setup expectations%0A%0A        //exercise%0A        List%3CTextCandidate%3E nominees = electedTextList.getNominees();%0A        //verify%0A        assertNotNull(nominees);
 %0A    %7D%0A%0A
@@ -1147,41 +1147,833 @@
 test
+_
 Get
-Electees() throws Exception %7B%0A
+Nominees_ReturnsConstructedNominees_OnlyWhenNoOverwrite() throws Exception %7B%0A        //setup data%0A        List%3CTextCandidate%3E newNomineesMock = (List%3CTextCandidate%3E) Mockito.mock(List.class);%0A%0A        //setup expectations%0A%0A        //exercise%0A        List%3CTextCandidate%3E nomineesReturned = electedTextList.getNominees();%0A        electedTextList.setNominees(newNomineesMock);%0A        List%3CTextCandidate%3E newNomineesReturned = electedTextList.getNominees();%0A%0A        //verify%0A        assertEquals(nomineesMock, nomineesReturned);%0A        assertEquals(newNomineesMock, newNomineesReturned);%0A        assertNotEquals(nomineesMock, newNomineesReturned);%0A    %7D%0A%0A    @Test%0A    public void test_GetElectees_ReturnsNonNull() throws Exception %7B%0A        //setup data%0A%0A        //setup expectations%0A%0A        //exercise%0A%0A        //verify
 %0A   

Add some tests to ElectedTextList class