Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
runcon
Plantuml Server
Commits
a0c3fbe5
Commit
a0c3fbe5
authored
Jul 09, 2013
by
Maxime Sinclair
Browse files
IOException temporary fixed
parent
4339629f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/net/sourceforge/plantuml/servlet/TestImage.java
View file @
a0c3fbe5
...
...
@@ -35,7 +35,6 @@ public class TestImage extends WebappTestCase {
int
diagramLen
=
inMemoryImage
.
length
;
assertTrue
(
diagramLen
>
10000
);
assertTrue
(
diagramLen
<
20000
);
Thread
.
sleep
(
500
);
responseStream
.
close
();
}
...
...
@@ -58,5 +57,6 @@ public class TestImage extends WebappTestCase {
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"EEE, dd MMM yyyy HH:mm:ss ZZZ"
,
Locale
.
ENGLISH
);
Date
lastModified
=
format
.
parse
(
response
.
getHeaderField
(
"Last-Modified"
));
assertTrue
(
"Last-Modified is not in the past"
,
lastModified
.
before
(
new
Date
()));
Thread
.
sleep
(
500
);
// Time to receive the image
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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