Skip to content

Commit

Permalink
polished
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Jan 6, 2014
1 parent 2f8d874 commit 2a4a291
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
50 changes: 0 additions & 50 deletions src/test/java/com/jcabi/xml/XMLTest.java

This file was deleted.

5 changes: 3 additions & 2 deletions src/test/java/com/jcabi/xml/XSDDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public void validatesComplexXml() throws Exception {
* @throws Exception If something goes wrong inside
*/
@Test
@SuppressWarnings("PMD.DoNotUseThreads")
public void validatesXmlInThreads() throws Exception {
final XSD xsd = new XSDDocument(
IOUtils.toInputStream(
Expand All @@ -153,7 +154,7 @@ public void validatesXmlInThreads() throws Exception {
);
new Runnable() {
@Override
@Parallel(threads = Tv.TEN)
@Parallel(threads = Tv.FIFTY)
public void run() {
MatcherAssert.assertThat(
xsd.validate(
Expand All @@ -162,6 +163,6 @@ public void run() {
Matchers.empty()
);
}
}.run();
} .run();
}
}
7 changes: 4 additions & 3 deletions src/test/java/com/jcabi/xml/XSLDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ public void makesXslTransformations() throws Exception {
* @throws Exception If something goes wrong inside
*/
@Test
@SuppressWarnings("PMD.DoNotUseThreads")
public void makesXslTransformationsInThreads() throws Exception {
final XSL xsl = new XSLDocument(
StringUtils.join(
"<xsl:stylesheet",
"<xsl:stylesheet ",
" xmlns:xsl='http://www.w3.org/1999/XSL/Transform' ",
" version='2.0' >",
"<xsl:template match='/'><works/>",
Expand All @@ -85,14 +86,14 @@ public void makesXslTransformationsInThreads() throws Exception {
);
new Runnable() {
@Override
@Parallel(threads = Tv.TEN)
@Parallel(threads = Tv.FIFTY)
public void run() {
MatcherAssert.assertThat(
xsl.transform(new XMLDocument("<test/>")),
XhtmlMatchers.hasXPath("/works")
);
}
}.run();
} .run();
}

}

0 comments on commit 2a4a291

Please sign in to comment.