Commit 8662968f authored by thorsten.vitt's avatar thorsten.vitt
Browse files

Fixed the HTML SID test.

It now asks for a document that I actually have access to.
parent 42f44660
......@@ -97,6 +97,7 @@ public TEICorpusSerializer(final ObjectType[] rootObjects, final boolean flat, f
@Override
public void write(final OutputStream output) throws IOException, WebApplicationException {
logger.info(MessageFormat.format("writing TEIcorpus for {0}, sid: {1}", this, getSid() != null && !getSid().isEmpty()));
outputFactory = XMLOutputFactory.newInstance();
eventFactory = XMLEventFactory.newInstance();
outputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
......
......@@ -42,7 +42,7 @@ public void testBasket() throws IOException {
@Test
public void testSid() throws IOException {
assumeThat(getSid(), not(""));
final HttpURLConnection connection = createRequest("/html/textgrid:1zzbt.0?sid=" + getSid());
final HttpURLConnection connection = createRequest("/html/textgrid:h4kd.0?sid=" + getSid());
connection.connect();
assertThat(connection.getResponseCode(), is(200));
assertThat(connection.getContentType(), is("text/html"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment