Commit 37b6fd95 authored by Alexander's avatar Alexander
Browse files

Add comment to TestBase

parent 053abd78
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment