Skip to content

Commit

Permalink
Adding new WithTesResource annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Jun 24, 2024
1 parent 600867c commit 55a286b
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,10 @@ private Collection<AnnotationInstance> findQuarkusTestResourceInstances(Class<?>
current = current.getEnclosingClass();
}

Set<AnnotationInstance> testResourceAnnotations = new LinkedHashSet<>();

Stream.of(WITH_TEST_RESOURCE, QUARKUS_TEST_RESOURCE)
Set<AnnotationInstance> testResourceAnnotations = Stream.of(WITH_TEST_RESOURCE, QUARKUS_TEST_RESOURCE)
.flatMap(dotName -> index.getAnnotations(dotName).stream())
.filter(annotation -> keepTestResourceAnnotation(annotation, annotation.target().asClass(), testClasses))
.forEach(testResourceAnnotations::add);
.collect(Collectors.toCollection(LinkedHashSet::new));

Stream.of(WithTestResource.List.class.getName(), QuarkusTestResource.List.class.getName())
.map(DotName::createSimple)
Expand Down

0 comments on commit 55a286b

Please sign in to comment.