Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WS-17-18
assignment-tests
Commits
17651f29
Commit
17651f29
authored
Mar 12, 2018
by
Jon Amos Fehling
Browse files
Merge remote-tracking branch 'origin/development' into development
parents
5f4807df
9ff46eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/TestBase.java
View file @
17651f29
...
...
@@ -211,26 +211,26 @@ public abstract class TestBase {
switch
(
testPair
.
getType
())
{
case
CHECK_EQUALS:
if
(!
output
.
equals
(
testPair
.
getOutput
()))
{
if
(!
testPair
.
getOutput
()
.
equals
(
output
))
{
log
.
info
(
" Failed!\n"
);
printLog
();
assertEquals
(
testPair
.
getOutput
(),
output
);
}
break
;
case
CHECK_STARTS_WITH:
if
(!
output
.
startsWith
(
testPair
.
getOutput
()))
{
if
(!
(
output
!=
null
&&
output
.
startsWith
(
testPair
.
getOutput
()))
)
{
log
.
info
(
" Failed!\n"
);
failAndLog
(
testPair
.
getFailMessage
(
output
));
}
break
;
case
CHECK_CONTAINS:
if
(!
output
.
contains
(
testPair
.
getOutput
()))
{
if
(!
(
output
!=
null
&&
output
.
contains
(
testPair
.
getOutput
()))
)
{
log
.
info
(
" Failed!\n"
);
failAndLog
(
testPair
.
getFailMessage
(
output
));
}
break
;
case
CHECK_FOR_ERROR:
if
(!
output
.
startsWith
(
ERROR_PREFIX
))
{
if
(!
(
output
!=
null
&&
output
.
startsWith
(
ERROR_PREFIX
))
)
{
log
.
info
(
" Failed!\n"
);
failAndLog
(
testPair
.
getFailMessage
(
output
));
}
...
...
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