@@ -76,7 +76,7 @@ public static JAXBElement<XLSType> envelop(

JAXBElement<? extends AbstractResponseParametersType> body_ = new JAXBElement(
new QName("http://www.opengis.net/xls", responseClass,
""), e.getClass(), e);
"xls"), e.getClass(), e);
responseType.setResponseParameters(body_);
}
responseType.setNumberOfResponses(new BigInteger((new Integer(
@@ -93,11 +93,11 @@ public static JAXBElement<XLSType> envelop(
header.setSessionID("none");

xlsType.setHeader(new JAXBElement<ResponseHeaderType>(new QName(
"http://www.opengis.net/xls", "ResponseHeader"),
"http://www.opengis.net/xls", "ResponseHeader", "xls"),
ResponseHeaderType.class, header));

JAXBElement<XLSType> res = new JAXBElement<XLSType>(new QName(
"http://www.opengis.net/xls", "xls"), XLSType.class, xlsType);
"http://www.opengis.net/xls", "xls", "xls"), XLSType.class, xlsType);

return res;
}
@@ -126,13 +126,4 @@ public static JAXBElement<XLSType> convertFile2XLSType(String path,
return ((JAXBElement<XLSType>) tmp);
}

public static XLSType convertString2OMElement(String xml)
throws JAXBException {
Unmarshaller m = JAXBContext.newInstance(XLSType.class)
.createUnmarshaller();
StringReader sr = new StringReader(xml);
XLSType tmp = (XLSType) m.unmarshal(sr);
return tmp;
}

}
@@ -27,9 +27,7 @@ log4j.logger.org=FATAL
log4j.logger.de=FATAL
log4j.logger.httpclient=FATAL
log4j.logger.com=FATAL
log4j.logger.org.gofleet=TRACE


log4j.logger.org.gofleet=DEBUG

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
@@ -39,9 +39,9 @@ public class RoutingServiceTests {
@Test
public void testSimpleRoute() throws FileNotFoundException, JAXBException,
XMLStreamException, FactoryConfigurationError, SAXException {
XLSType object = openLS.openLS(
Utils.convertFile2XLSType("/determineRouteRequest.xml",
XLSType.class)).getValue();
JAXBElement<XLSType> convertFile2XLSType = Utils.convertFile2XLSType(
"/determineRouteRequest.xml", XLSType.class);
XLSType object = openLS.openLS(convertFile2XLSType).getValue();

assertNotNull("Empty response", object);

@@ -98,8 +98,8 @@ public void testSimpleRoute() throws FileNotFoundException, JAXBException,
assertNotNull("There should be a list of positions",
posOrPointPropertyOrPointRep);

assertEquals("I was expecting five points",
posOrPointPropertyOrPointRep.size(), 10);
assertEquals("I was expecting more points", 10,
posOrPointPropertyOrPointRep.size());

for (JAXBElement<?> element : posOrPointPropertyOrPointRep) {
assertNotNull(element);
@@ -28,7 +28,7 @@
<EndPoint>
<Position>
<gml:Point>
<gml:pos>3.6507 40.4331</gml:pos>
<gml:pos>-3.6507 40.4331</gml:pos>
</gml:Point>
</Position>
</EndPoint>
@@ -1,5 +1,5 @@
jdbc.driverClassName=org.postgis.DriverWrapper
jdbc.url=jdbc\:postgresql_postGIS\://gofre:5433/gofleetls
jdbc.url=jdbc\:postgresql_postGIS\://ghost\:5434/gofleetls
jdbc.username=gofleetls
jdbc.password=gofleetls
jdbc.hibernate.dialect=org.hibernatespatial.postgis.PostgisDialect