mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Merge pull request #591 from guusdk/sint-specref-version
[sinttest] Add optional version to specification reference
This commit is contained in:
commit
e79429e052
2 changed files with 11 additions and 1 deletions
|
@ -179,6 +179,9 @@ public class SmackIntegrationTestFramework {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String line = spec.document().trim();
|
String line = spec.document().trim();
|
||||||
|
if (!spec.version().isBlank()) {
|
||||||
|
line += " (version " + spec.version() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
final SmackIntegrationTest test = method.getAnnotation(SmackIntegrationTest.class);
|
final SmackIntegrationTest test = method.getAnnotation(SmackIntegrationTest.class);
|
||||||
if (!test.section().isBlank()) {
|
if (!test.section().isBlank()) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
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
|
* @author Guus der Kinderen, guus@goodbytes.nl
|
||||||
*/
|
*/
|
||||||
|
@ -38,4 +38,11 @@ public @interface SpecificationReference {
|
||||||
* @return a document identifier
|
* @return a document identifier
|
||||||
*/
|
*/
|
||||||
String document();
|
String document();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An optional version number, such as '1.2.0'.
|
||||||
|
*
|
||||||
|
* @return a version number
|
||||||
|
*/
|
||||||
|
String version() default "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue