mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Merge pull request #587 from guusdk/sint_fix-annotation-read
[sinttest] Fix processing of SpecificationReference
This commit is contained in:
commit
2e94599d58
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ public class SmackIntegrationTestFramework {
|
||||||
for (FailedTest failedTest : testRunResult.failedIntegrationTests) {
|
for (FailedTest failedTest : testRunResult.failedIntegrationTests) {
|
||||||
final Throwable cause = failedTest.failureReason;
|
final Throwable cause = failedTest.failureReason;
|
||||||
LOGGER.log(Level.SEVERE, failedTest.concreteTest + " failed: " + cause, cause);
|
LOGGER.log(Level.SEVERE, failedTest.concreteTest + " failed: " + cause, cause);
|
||||||
if (failedTest.concreteTest.method.isAnnotationPresent(SpecificationReference.class)) {
|
if (failedTest.concreteTest.method.getDeclaringClass().isAnnotationPresent(SpecificationReference.class)) {
|
||||||
final String specificationReference = getSpecificationReference(failedTest.concreteTest.method);
|
final String specificationReference = getSpecificationReference(failedTest.concreteTest.method);
|
||||||
if (specificationReference != null) {
|
if (specificationReference != null) {
|
||||||
bySpecification.add("- " + specificationReference + " (as tested by '" + failedTest.concreteTest + "')");
|
bySpecification.add("- " + specificationReference + " (as tested by '" + failedTest.concreteTest + "')");
|
||||||
|
|
Loading…
Reference in a new issue