mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Add method for printing current jupiter test name
This commit is contained in:
parent
f1db254073
commit
b8ae566b69
@ -26,6 +26,8 @@ import java.util.Map;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.junit.jupiter.api.TestInfo;
|
||||
|
||||
import static java.util.Arrays.stream;
|
||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||
|
||||
@ -117,4 +119,10 @@ public class ApiTestCase {
|
||||
// empty
|
||||
}
|
||||
}
|
||||
|
||||
protected final String testName(TestInfo testInfo) {
|
||||
return testInfo.getTestMethod().isPresent()
|
||||
? testInfo.getTestMethod().get().getName()
|
||||
: "unknown test name";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user