mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +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) {
|
||||
final Throwable cause = failedTest.failureReason;
|
||||
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);
|
||||
if (specificationReference != null) {
|
||||
bySpecification.add("- " + specificationReference + " (as tested by '" + failedTest.concreteTest + "')");
|
||||
|
|
Loading…
Reference in a new issue