Skip to content

Commit

Permalink
#214 jcabi-xml up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 7, 2025
1 parent 5e073ff commit 406b4cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-xml</artifactId>
<version>0.31.0</version>
<version>0.33.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/xembly/DirectivesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void copiesExistingNode() throws Exception {
"<!-- some comment -->",
"<x><![CDATA[hey you]]></x> </jeff>"
)
).node()
).deepCopy()
);
MatcherAssert.assertThat(copy, Matchers.iterableWithSize(19));
new Xembler(new Directives().add("dudes").append(copy)).apply(dom);
Expand All @@ -195,7 +195,7 @@ void appendsExistingNode() throws Exception {
"<io a='x'><f><name>\u20ac</name></f></io>",
"<x><![CDATA[hey you]]></x> </joe>"
)
).node()
).deepCopy()
)
).apply(dom);
MatcherAssert.assertThat(
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/org/xembly/XemblerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void escapesBrokenText() {

@Test
void modifiesClonedNode() throws Exception {
final Node node = new XMLDocument("<t/>").node().cloneNode(true);
final Node node = new XMLDocument("<t/>").deepCopy();
new Xembler(new Directives().xpath("/t").add("x")).apply(node);
MatcherAssert.assertThat(
new XMLDocument(node),
Expand All @@ -155,7 +155,7 @@ void modifiesClonedNode() throws Exception {

@Test
void replacesRootNode() throws Exception {
final Node node = new XMLDocument("<e/>").node();
final Node node = new XMLDocument("<e/>").deepCopy();
new Xembler(new Directives().xpath("/e").remove().add("p")).apply(node);
MatcherAssert.assertThat(
new XMLDocument(node),
Expand All @@ -165,7 +165,7 @@ void replacesRootNode() throws Exception {

@Test
void removesAttribute() throws Exception {
final Node node = new XMLDocument("<i8 a6='foo'/>").node();
final Node node = new XMLDocument("<i8 a6='foo'/>").deepCopy();
new Xembler(
new Directives()
.xpath("/i8/@a6")
Expand All @@ -181,7 +181,7 @@ void removesAttribute() throws Exception {

@Test
void removesRootNode() throws Exception {
final Node node = new XMLDocument("<old/>").node();
final Node node = new XMLDocument("<old/>").deepCopy();
new Xembler(
new Directives().xpath("/old").remove().add("new")
).apply(node);
Expand Down

0 comments on commit 406b4cf

Please sign in to comment.