//package seng302.Mock;
//
//import org.junit.Before;
//import org.junit.Test;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import static org.junit.Assert.assertEquals;
//
///**
// * Created by jjg64 on 21/04/17.
// */
//public class BoatsXMLTest {
//    private BoatXMLReader boatXMLReader;
//
//    @Before
//    public void setup() {
//        try {
//            boatXMLReader = new BoatXMLReader("mockXML/boatXML/boatTest.xml", false);
//        } catch (Exception e) {
//            e.printStackTrace();
//            //fail("Cannot find mockXML/raceXML/raceTest.xml in the resources folder");
//        }
//    }
//
//    @Test
//    public void testInvalidParticipant() {
//        Map<Integer, StreamedBoat> inputParticipants = new HashMap<>();
//        inputParticipants.put(420, new StreamedBoat(420));
//        boatXMLReader.setParticipants(inputParticipants);
//        boatXMLReader.read();
//        assertEquals(boatXMLReader.getBoats().size(), 0);
//    }
//
//    @Test
//    public void testValidParticipant() {
//        Map<Integer, StreamedBoat> inputParticipants = new HashMap<>();
//        inputParticipants.put(101, new StreamedBoat(101));
//        boatXMLReader.setParticipants(inputParticipants);
//        boatXMLReader.read();
//        assertEquals(boatXMLReader.getBoats().size(), 1);
//        StreamedBoat boat = (StreamedBoat) boatXMLReader.getBoats().get(0);
//        assertEquals(boat.getSourceID(), 101);
//    }
//
//}
