Skip to content

Commit

Permalink
jdk9
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 14, 2019
1 parent 0a7d79c commit 9ac2a57
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -25,4 +25,4 @@ env:
- MAVEN_OPTS="-Xmx256m"
- JAVA_OPTS="-Xmx256m"
jdk:
- oraclejdk8
- oraclejdk9
39 changes: 32 additions & 7 deletions src/test/java/org/xembly/XemblerTest.java
Expand Up @@ -55,6 +55,33 @@
@SuppressWarnings("PMD.TooManyMethods")
public final class XemblerTest {


@Test
public void test() throws Exception {
Directives dirs = new Directives(
StringUtils.join(
"ADD 'books'; ADD 'book'; CDATA 'hey';"
)
);
String xml = new Xembler(dirs).xml();
System.out.println(xml);
}
















/**
* Xembler can change DOM document.
* @throws Exception If some problem inside
Expand All @@ -66,13 +93,11 @@ public void makesChangesToDomDocument() throws Exception {
new Xembler(
new Directives(
StringUtils.join(
new String[] {
"ADD 'root'; STRICT '1'; ADD 'order';",
"ATTR 'tag', 'hello, world!';",
"ADD 'price'; SET \"$29.99\"; STRICT '1'; UP; UP;",
"XPATH '//order[price='$29.99']/price';",
"SET ' $39.99 ';",
}
"ADD 'root'; STRICT '1'; ADD 'order';",
"ATTR 'tag', 'hello, world!';",
"ADD 'price'; SET \"$29.99\"; STRICT '1'; UP; UP;",
"XPATH '//order[price='$29.99']/price';",
"SET ' $39.99 ';"
)
)
).apply(dom);
Expand Down

0 comments on commit 9ac2a57

Please sign in to comment.