Skip to content

Commit

Permalink
Adapt to API change in open-test-reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Dec 2, 2024
1 parent a24ceb0 commit d7d326e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.opentest4j.reporting.tooling.spi.htmlreport.Contributor;
import org.opentest4j.reporting.tooling.spi.htmlreport.KeyValuePairs;
import org.opentest4j.reporting.tooling.spi.htmlreport.Section;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

Expand All @@ -42,8 +41,8 @@ public JUnitContributor() {
}

@Override
public List<Section> contributeSectionsForTestNode(Element testNodeElement) {
return findChild(testNodeElement, Namespace.REPORTING_CORE, "metadata") //
public List<Section> contributeSectionsForTestNode(Context context) {
return findChild(context.element(), Namespace.REPORTING_CORE, "metadata") //
.map(metadata -> {
Map<String, String> table = new LinkedHashMap<>();
findChild(metadata, JUnitFactory.NAMESPACE, "type") //
Expand Down

0 comments on commit d7d326e

Please sign in to comment.