parent
c40967f972
commit
b825790acd
@ -1,4 +1,4 @@
|
||||
package seng302.Controllers.Mock;
|
||||
package seng302.Mock;
|
||||
|
||||
/**
|
||||
* 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.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
import org.xml.sax.SAXException;
|
||||
import seng302.XMLReader;
|
||||
@ -1,15 +1,24 @@
|
||||
package seng302.Mock;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.xml.sax.SAXException;
|
||||
import seng302.Controllers.Mock.RegattaXMLReader;
|
||||
import seng302.RaceXMLReader;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.IOException;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
/**
|
||||
* Created by jjg64 on 19/04/17.
|
||||
*/
|
||||
public class RegattaXMLTest {
|
||||
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