1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 20:25:59 +02:00

Merge pull request #591 from guusdk/sint-specref-version

[sinttest] Add optional version to specification reference
This commit is contained in:
Florian Schmaus 2024-05-02 09:50:26 +00:00 committed by GitHub
commit e79429e052
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -179,6 +179,9 @@ public class SmackIntegrationTestFramework {
return null;
}
String line = spec.document().trim();
if (!spec.version().isBlank()) {
line += " (version " + spec.version() + ")";
}
final SmackIntegrationTest test = method.getAnnotation(SmackIntegrationTest.class);
if (!test.section().isBlank()) {

View file

@ -23,7 +23,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Reference to a specific part of a specification.
* Reference to a specification document.
*
* @author Guus der Kinderen, guus@goodbytes.nl
*/
@ -38,4 +38,11 @@ public @interface SpecificationReference {
* @return a document identifier
*/
String document();
/**
* An optional version number, such as '1.2.0'.
*
* @return a version number
*/
String version() default "";
}