Skip to content

Commit

Permalink
Merge pull request #587 from guusdk/sint_fix-annotation-read
Browse files Browse the repository at this point in the history
[sinttest] Fix processing of SpecificationReference
  • Loading branch information
Flowdalic committed Apr 11, 2024
2 parents 355cc4e + d515a24 commit 2e94599
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -138,7 +138,7 @@ public static void main(String[] args) throws IOException, KeyManagementExceptio
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 + "')");
Expand Down

0 comments on commit 2e94599

Please sign in to comment.