Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
G4-SoftEng
Group4-SoftEng
Commits
0e6d715a
Commit
0e6d715a
authored
Jun 06, 2021
by
saddamonpc
Browse files
Edit print output to allow tests on different environments
parent
a5844345
Pipeline
#81533
passed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/softeng/g4/user/TeachingAssistantTest.java
View file @
0e6d715a
...
...
@@ -56,10 +56,21 @@ class TeachingAssistantTest {
testTa
.
setSchedule
(
"monday"
,
"Busy"
,
"07:00"
,
"21:00"
);
testTa
.
seeCalendar
();
// Remove all linebreaks from the print, since different environment uses different line separators
String
outContentEdit
=
outContent
.
toString
().
replaceAll
(
"\n"
,
""
).
replaceAll
(
"\r"
,
""
);
String
expectedOutput
=
"Monday:\r\nBusy 07:00 - 21:00\r\n"
+
"Tuesday:\r\nWednesday:\r\nThursday:\r\nFriday:\r\nSaturday:\r\nSunday:\r\n\r\n"
;
assertEquals
(
expectedOutput
,
outContent
.
toString
());
"Monday:"
+
"Busy 07:00 - 21:00"
+
"Tuesday:"
+
"Wednesday:"
+
"Thursday:"
+
"Friday:"
+
"Saturday:"
+
"Sunday:"
;
assertEquals
(
expectedOutput
,
outContentEdit
);
}
@Test
...
...
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