Started on the boat XML parser, reads only boat data from the XML and makes a StreamedBoat for each boat in the XML. #story[861]
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
package seng302.Mock;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.IOException;
|
||||
import java.text.ParseException;
|
||||
|
||||
/**
|
||||
* Created by jjg64 on 21/04/17.
|
||||
*/
|
||||
public class BoatsXMLTest {
|
||||
|
||||
@Test
|
||||
public void test() throws SAXException, ParserConfigurationException, ParseException, IOException {
|
||||
new BoatXMLReader("mockXML/boatXML/boatTest.xml");
|
||||
//new BoatXMLReader("mockXML/raceXML/raceTest.xml", true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user