parent
c40967f972
commit
b825790acd
@ -1,4 +1,4 @@
|
|||||||
package seng302.Controllers.Mock;
|
package seng302.Mock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by jjg64 on 19/04/17.
|
* Created by jjg64 on 19/04/17.
|
||||||
@ -1,7 +1,6 @@
|
|||||||
package seng302.Controllers.Mock;
|
package seng302.Mock;
|
||||||
|
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import seng302.XMLReader;
|
import seng302.XMLReader;
|
||||||
@ -1,15 +1,24 @@
|
|||||||
package seng302.Mock;
|
package seng302.Mock;
|
||||||
|
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.xml.sax.SAXException;
|
import seng302.RaceXMLReader;
|
||||||
import seng302.Controllers.Mock.RegattaXMLReader;
|
|
||||||
|
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
import static org.junit.Assert.fail;
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by jjg64 on 19/04/17.
|
* Created by jjg64 on 19/04/17.
|
||||||
*/
|
*/
|
||||||
public class RegattaXMLTest {
|
public class RegattaXMLTest {
|
||||||
RegattaXMLReader regattaXMLReader;
|
RegattaXMLReader regattaXMLReader;
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void canFindFile(){
|
||||||
|
try {
|
||||||
|
regattaXMLReader = new RegattaXMLReader("mockXML/regattaXML/regattaTest.xml", false);
|
||||||
|
} catch (Exception e) {
|
||||||
|
fail("Cannot find mockXML/regattaXML/regattaTest.xml in the resources folder");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in new issue