Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment