Skip to content

Commit

Permalink
#473 - Fixed xpaths.
Browse files Browse the repository at this point in the history
  • Loading branch information
vzurauskas committed Jun 19, 2020
1 parent 06ba06d commit a869fac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/org/jpeek/graph/XmlGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.cactoos.list.ListOf;
import org.cactoos.scalar.Sticky;
import org.cactoos.scalar.Unchecked;
import org.cactoos.text.Joined;
import org.cactoos.text.FormattedText;
import org.jpeek.skeleton.Skeleton;

/**
Expand Down Expand Up @@ -85,10 +85,14 @@ private static List<Node> build(
new XmlMethodSignature(
skeleton.xml()
.nodes(
new Joined("", "//package[@id=", pname).toString()
new FormattedText(
"//package[@id=%s]", pname
).toString()
).get(0)
.nodes(
new Joined("", "//class[@id=", cname).toString()
new FormattedText(
"//class[@id=%s]", cname
).toString()
).get(0),
method
).asString()
Expand Down

0 comments on commit a869fac

Please sign in to comment.