@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Repeatable(value=RepeatableWithSvc.class) public @interface WithSvc
It can be used at class and method level. If used at class level, the referenced services will be started before JUnit executes your @BeforeClass method.
If used at method level, the referenced services will be started before JUnit executes your @Before method.
It can also be used at class and method level at the same time, if some services will be used by all the tests in your class, while other are specific for one method.
| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
svc
The descriptor class that defines how to instantiate the svc
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
containerNamePrefix
A prefix that will be used to give names to the containers instantiated
to run your svc.
|
int |
priority
Value used to support dependencies between services.
|
int |
replicas |
public abstract Class<?> svc
public abstract String containerNamePrefix
If not set, Docker random names will be used. If set and replicas has been set to 1, the actual value will be the container name. If set and replicas has been set to more than 1, containers will be named as value + "1", value + "2", ...
Copyright © 2021. All rights reserved.