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
37b6fd95
Commit
37b6fd95
authored
Mar 12, 2018
by
Alexander
Browse files
Add comment to TestBase
parent
053abd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/TestBase.java
View file @
37b6fd95
...
...
@@ -48,7 +48,10 @@ public abstract class TestBase {
}
/**
* Print diff block.
* Initializes the current test.
* This is called automatically.
*
* @param testInfo is the {@link TestInfo} for this test
*/
@BeforeEach
protected
void
initTest
(
TestInfo
testInfo
)
{
...
...
@@ -76,6 +79,12 @@ public abstract class TestBase {
log
.
info
(
"Running test '"
+
getTestName
(
testInfo
)
+
"' ...\n"
);
}
/**
* Gets the name of the current test based upon a testInfo
*
* @param testInfo is the {@link TestInfo} of this test
* @return the name of the current test based upon a testInfo
*/
protected
String
getTestName
(
TestInfo
testInfo
)
{
return
testInfo
.
getDisplayName
()
+
" @ "
+
testInfo
.
getTestClass
().
toString
().
substring
(
15
).
replace
(
"]"
,
""
);
}
...
...
@@ -260,6 +269,7 @@ public abstract class TestBase {
* Gets the commandLineArgs from a specified io file
*
* @param path is the path of the io-file
* @return the commandLineArgs from a specified io file
*/
protected
String
[]
getCommandLineArgsFromIOFile
(
String
path
)
{
try
{
...
...
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