Annotation Type JUnitNatsServer
-
@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @ExtendWith(NatsServer.class) public @interface JUnitNatsServer
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringbinaryFileFile to nats server binary so no download will be neededString[]configPasses the original parameters toNats.config()for startupNatsConfigStringconfigFileConfig fileStringdownloadUrlCustom download URLbooleankeepAlivePrevents theNatsServerfrom recreating for each test classStringnameNats server nameintportSets nats port -1 means random portlongtimeoutMsDefines the startup and teardown timeoutStringversionSets the version for theNatsServer
-
-
-
-
name
String name
Nats server name- Default:
- ""
-
-
-
configFile
String configFile
Config file- Default:
- ""
-
-
-
downloadUrl
String downloadUrl
Custom download URL- Default:
- ""
-
-
-
binaryFile
String binaryFile
File to nats server binary so no download will be needed- Default:
- ""
-
-
-
config
String[] config
Passes the original parameters toNats.config()for startupNatsConfig- Default:
- {}
-
-
-
keepAlive
boolean keepAlive
Prevents theNatsServerfrom recreating for each test class- Default:
- false
-
-
-
version
String version
Sets the version for theNatsServer- Default:
- ""
-
-