Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
DARIAH-DE Aggregator Services
Commits
8662968f
Commit
8662968f
authored
Feb 18, 2014
by
thorsten.vitt
Browse files
Fixed the HTML SID test.
It now asks for a document that I actually have access to.
parent
42f44660
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/info/textgrid/services/aggregator/teicorpus/TEICorpusSerializer.java
View file @
8662968f
...
...
@@ -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
);
...
...
src/test/java/info/textgrid/services/aggregator/html/HtmlIT.java
View file @
8662968f
...
...
@@ -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"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment