Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Luke Texon
simplewebapp
Commits
f8db20ca
Commit
f8db20ca
authored
Jan 17, 2020
by
Raghav Khanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests to check file contain likely the correct contents
parent
5ba3285e
Pipeline
#114243
failed with stages
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/test/java/ic/doc/FileGenerateTest.java
src/test/java/ic/doc/FileGenerateTest.java
+11
-3
No files found.
src/test/java/ic/doc/FileGenerateTest.java
View file @
f8db20ca
...
@@ -27,8 +27,16 @@ public class FileGenerateTest {
...
@@ -27,8 +27,16 @@ public class FileGenerateTest {
@Test
@Test
public
void
reasonableNameForPdfFile
()
throws
Exception
{
public
void
reasonableNameForPdfFile
()
throws
Exception
{
assertTrue
(
HtmlConverter
.
stringToPdfFile
(
"tony"
,
"test"
)
assertTrue
(
HtmlConverter
.
stringToPdfFile
(
"tony"
,
"test"
).
getName
().
matches
(
"tony[0-9]+.pdf"
));
.
getName
()
}
.
matches
(
"tony[0-9]+.pdf"
));
@Test
public
void
fileSizePdf
()
throws
Exception
{
assertTrue
(
HtmlConverter
.
stringToPdfFile
(
"tony"
,
"test"
).
length
()
==
44102
);
}
@Test
public
void
fileSizeMd
()
throws
Exception
{
assertTrue
(
HtmlConverter
.
stringToMdFile
(
"konstantinos"
,
"test"
).
length
()
==
20
);
}
}
}
}
Write
Preview
Markdown
is supported
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