mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-25 12:08:00 +01:00
[sinttest] Fix processing of SpecificationReference
When refactoring the original implementation, this annotation was expected to be present on methods. It later was changed to be a type-based annotation. This particular usage of the annotation was not properly modified to account for that change.
This commit is contained in:
parent
78814d2f86
commit
d515a24e1c
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