public final class TimeoutPerThread extends Object
--timeout-per-test 120
.
In case if the argument is missing, the default timeout is 5 minutes.Constructor and Description |
---|
TimeoutPerThread(List<String> args)
Ctor.
|
TimeoutPerThread(String... args)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
name()
Fetch name of command-line argument.
|
boolean |
specifiedByUser()
Verify existence of argument in the arguments specified by user.
|
X |
value()
Fetch value of command-line argument.
|
public TimeoutPerThread(String... args)
args
- Command-line arguments specified by user.public String name()
Arg
-f tests.yml
the name is -f
.public X value() throws CmdArgNotFoundException
Arg
-f tests.yml
the value is tests.yml
.value
in interface Arg<X>
CmdArgNotFoundException
- in case if the argument wasn't
specified by the user or arguments itself are empty.public boolean specifiedByUser()
Arg
specifiedByUser
in interface Arg<X>
Copyright © 2019. All rights reserved.