package com.grayben.riskExtractor.headingMarker.elector;

import java.util.List;

import com.grayben.riskExtractor.headingMarker.nominator.NominatedText;

public class ElectedText

        extends
        NominatedText

        implements
	    ElecteesRetrievable {


    List<Integer> electees;

    public ElectedText(List<String> textList, List<Integer> nominees, List<Integer> electees){
        super(textList, nominees);
        this.electees = electees;
    }

    public ElectedText(NominatedText nominatedText, List<Integer> electees){
        super(nominatedText);
        this.electees = electees;
    }

    public ElectedText(ElectedText electedText){
        this(electedText, electedText.getElectees());
    }

    @Override
    public List<Integer> getElectees() {
        // TODO Auto-generated method stub
        return this.electees;
    }

}

@@ -420,16 +420,145 @@
 inees);%0A
+        if (electees == null) %7B%0A            throw new NullPointerException(%22Attempted to pass illegal null argument%22);%0A        %7D%0A
         
@@ -697,16 +697,145 @@
 dText);%0A
+        if (electees == null) %7B%0A            throw new NullPointerException(%22Attempted to pass illegal null argument%22);%0A        %7D%0A
         

check arguments to make tests pass