Annotation Interface JUnitNatsServer
@Target({TYPE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@ExtendWith(NatsServer.class)
public @interface JUnitNatsServer
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionFile to nats server binary so no download will be neededString[]Passes the original parameters toNats.config(NatsConfig, String)for startupNatsConfigConfig fileCustom download URLbooleanPrevents theNatsServerfrom recreating for each test classNats server nameintSets nats port -1 means random portlongDefines the startup and teardown timeout
-
Element Details
-
port
int portSets nats port -1 means random port- Default:
- 4222
-
timeoutMs
long timeoutMsDefines the startup and teardown timeout- Default:
- 10000L
-
name
String nameNats server name- Default:
- ""
-
configFile
String configFileConfig file- Default:
- ""
-
downloadUrl
String downloadUrlCustom download URL- Default:
- ""
-
binaryFile
String binaryFileFile to nats server binary so no download will be needed- Default:
- ""
-
config
String[] configPasses the original parameters toNats.config(NatsConfig, String)for startupNatsConfig- Default:
- {}
-
keepAlive
boolean keepAlivePrevents theNatsServerfrom recreating for each test class- Default:
- false
-