Skip to content

Commit

Permalink
#107 test comments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 24, 2022
1 parent 01b9f86 commit 8931be6
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 291 deletions.
Expand Up @@ -43,10 +43,6 @@
*/
public final class SaxonSampleTest {

/**
* Xembly can build a document.
* @throws Exception If fails
*/
@Test
public void buildsDocument() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -59,10 +55,6 @@ public void buildsDocument() throws Exception {
);
}

/**
* Xembly can apply changes to a node.
* @throws Exception If fails
*/
@Test
public void appliesChangesToNode() throws Exception {
final Node node = new XMLDocument("<doc/>").node();
Expand Down
Expand Up @@ -43,10 +43,6 @@
*/
public final class XercesSampleTest {

/**
* Xembly can build a document.
* @throws Exception If fails
*/
@Test
public void buildsDocument() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -59,10 +55,6 @@ public void buildsDocument() throws Exception {
);
}

/**
* Xembly can apply changes to a node.
* @throws Exception If fails
*/
@Test
public void appliesChangesToNode() throws Exception {
final Node node = new XMLDocument("<doc/>").node();
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/xembly/AddDirectiveTest.java
Expand Up @@ -42,10 +42,6 @@
*/
public final class AddDirectiveTest {

/**
* AddDirective can add nodes to current nodes.
* @throws Exception If some problem inside
*/
@Test
public void addsNodesToCurrentNodes() throws Exception {
final Iterable<Directive> dirs = new Directives(
Expand Down
9 changes: 0 additions & 9 deletions src/test/java/org/xembly/AddIfDirectiveTest.java
Expand Up @@ -44,10 +44,6 @@
*/
public final class AddIfDirectiveTest {

/**
* AddIfDirective can add nodes to current nodes.
* @throws Exception If some problem inside
*/
@Test
public void addsNodesToCurrentNodes() throws Exception {
final Iterable<Directive> dirs = new Directives(
Expand All @@ -65,11 +61,6 @@ public void addsNodesToCurrentNodes() throws Exception {
);
}

/**
* AddIfDirective can add node to a node.
* @throws Exception If some problem inside
* @since 0.15.2
*/
@Test
public void addsDomNodesDirectly() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand Down
10 changes: 0 additions & 10 deletions src/test/java/org/xembly/ArgTest.java
Expand Up @@ -41,10 +41,6 @@
*/
public final class ArgTest {

/**
* Arg can escape and unescape.
* @throws Exception If some problem inside
*/
@Test
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
public void escapesAndUnescaped() throws Exception {
Expand All @@ -62,9 +58,6 @@ public void escapesAndUnescaped() throws Exception {
}
}

/**
* Arg can reject to escape invalid text.
*/
@Test
public void rejectsToEscapeInvalidXmlChars() {
Assertions.assertThrows(
Expand All @@ -73,9 +66,6 @@ public void rejectsToEscapeInvalidXmlChars() {
);
}

/**
* Arg can reject to unescape invalid text.
*/
@Test
public void rejectsToUnEscapeInvalidXmlChars() {
Assertions.assertThrows(
Expand Down
14 changes: 0 additions & 14 deletions src/test/java/org/xembly/AttrDirectiveTest.java
Expand Up @@ -45,10 +45,6 @@
*/
public final class AttrDirectiveTest {

/**
* AttrDirective can add nodes to current nodes.
* @throws Exception If some problem inside
*/
@Test
public void addsAttributesToCurrentNodes() throws Exception {
final Iterable<Directive> dirs = new Directives(
Expand All @@ -71,11 +67,6 @@ public void addsAttributesToCurrentNodes() throws Exception {
);
}

/**
* AttrDirective can add attribute to node.
* @throws Exception If some problem inside
* @since 0.7
*/
@Test
public void addsDomAttributesDirectly() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand All @@ -96,11 +87,6 @@ public void addsDomAttributesDirectly() throws Exception {
);
}

/**
* AttrDirective can add case-sensitive attributes.
* @throws Exception If some problem inside
* @since 0.16.1
*/
@Test
public void addsCaseSensitiveAttributesDirectly() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/xembly/CommentDirectiveTest.java
Expand Up @@ -42,10 +42,6 @@
*/
public final class CommentDirectiveTest {

/**
* CommentDirective can add a comment.
* @throws Exception If some problem inside
*/
@Test
public void addsComment() throws Exception {
final Iterable<Directive> dirs = new Directives(
Expand Down
70 changes: 0 additions & 70 deletions src/test/java/org/xembly/DirectivesTest.java
Expand Up @@ -52,10 +52,6 @@
@SuppressWarnings({"PMD.TooManyMethods", "PMD.AvoidDuplicateLiterals"})
public final class DirectivesTest {

/**
* Directives can make an XML document.
* @throws Exception If some problem inside
*/
@Test
public void makesXmlDocument() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -76,10 +72,6 @@ public void makesXmlDocument() throws Exception {
);
}

/**
* Directives can parse xembly grammar.
* @throws Exception If some problem inside
*/
@Test
public void parsesIncomingGrammar() throws Exception {
final Iterable<Directive> dirs = new Directives(
Expand All @@ -88,9 +80,6 @@ public void parsesIncomingGrammar() throws Exception {
MatcherAssert.assertThat(dirs, Matchers.iterableWithSize(2));
}

/**
* Directives can throw when grammar is broken.
*/
@Test
public void throwsOnBrokenGrammar() {
Assertions.assertThrows(
Expand All @@ -99,9 +88,6 @@ public void throwsOnBrokenGrammar() {
);
}

/**
* Directives can throw when XML content is broken.
*/
@Test
public void throwsOnBrokenXmlContent() {
Assertions.assertThrows(
Expand All @@ -110,9 +96,6 @@ public void throwsOnBrokenXmlContent() {
);
}

/**
* Directives can throw when escaped XML content is broken.
*/
@Test
public void throwsOnBrokenEscapedXmlContent() {
Assertions.assertThrows(
Expand All @@ -121,11 +104,6 @@ public void throwsOnBrokenEscapedXmlContent() {
);
}

/**
* Directives can add map of values.
* @throws Exception If some problem inside
* @since 0.8
*/
@Test
public void addsMapOfValues() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand All @@ -148,10 +126,6 @@ public void addsMapOfValues() throws Exception {
);
}

/**
* Directives can ignore empty input.
* @throws Exception If some problem inside
*/
@Test
public void ingoresEmptyInput() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -160,10 +134,6 @@ public void ingoresEmptyInput() throws Exception {
);
}

/**
* Directives can build a correct modification programme.
* @throws Exception If some problem inside
*/
@Test
public void performsFullScaleModifications() throws Exception {
final String script = new Directives()
Expand All @@ -185,11 +155,6 @@ public void performsFullScaleModifications() throws Exception {
);
}

/**
* Directives can copy an existing node.
* @throws Exception If some problem inside
* @since 0.13
*/
@Test
public void copiesExistingNode() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand Down Expand Up @@ -217,11 +182,6 @@ public void copiesExistingNode() throws Exception {
);
}

/**
* Appends an existing node.
* @throws Exception If some problem inside
* @since 1.0
*/
@Test
public void appendsExistingNode() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand All @@ -247,11 +207,6 @@ public void appendsExistingNode() throws Exception {
);
}

/**
* Directives can understand case.
* @throws Exception If some problem inside
* @since 0.14.1
*/
@Test
public void addsElementsCaseSensitively() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -263,11 +218,6 @@ public void addsElementsCaseSensitively() throws Exception {
);
}

/**
* Directives can convert to string.
* @throws Exception If some problem inside
* @since 0.15.2
*/
@Test
public void convertsToString() throws Exception {
final Directives dirs = new Directives();
Expand All @@ -284,10 +234,6 @@ public void convertsToString() throws Exception {
);
}

/**
* Directives can push and pop.
* @throws Exception If some problem inside
*/
@Test
public void pushesAndPopsCursor() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -309,10 +255,6 @@ public void pushesAndPopsCursor() throws Exception {
);
}

/**
* Directives can use namespaces.
* @throws Exception If some problem inside
*/
@Test
public void prefixesItemsWithNamespaces() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -326,10 +268,6 @@ public void prefixesItemsWithNamespaces() throws Exception {
);
}

/**
* Directives can accept directives from multiple threads.
* @throws Exception If some problem inside
*/
@Test
@Disabled
public void acceptsFromMultipleThreads() throws Exception {
Expand All @@ -353,10 +291,6 @@ public Void call() throws Exception {
);
}

/**
* Directives can add comments.
* @throws Exception If some problem inside
*/
@Test
public void addsComments() throws Exception {
MatcherAssert.assertThat(
Expand All @@ -369,10 +303,6 @@ public void addsComments() throws Exception {
);
}

/**
* Directives can append.
* @throws Exception If some problem inside
*/
@Test
public void appendsDirs() throws Exception {
MatcherAssert.assertThat(
Expand Down
8 changes: 0 additions & 8 deletions src/test/java/org/xembly/DomStackTest.java
Expand Up @@ -42,10 +42,6 @@
*/
public final class DomStackTest {

/**
* DomStack can push and pop.
* @throws Exception If some problem inside
*/
@Test
public void addsAndRetrieves() throws Exception {
final Directive.Stack stack = new DomStack();
Expand All @@ -63,10 +59,6 @@ public void addsAndRetrieves() throws Exception {
);
}

/**
* DomStack throws ImpossibleModificationException when
* trying to pop an empty stack.
*/
@Test
public void throwsExceptionOnEmpty() {
Assertions.assertThrows(
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/xembly/NsDirectiveTest.java
Expand Up @@ -44,10 +44,6 @@
* @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
public final class NsDirectiveTest {
/**
* Verifies that NsDirective appends a namespace to a node.
* @throws Exception Thrown in case of an error.
*/
@Test
public void setsNsAttr() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand Down

0 comments on commit 8931be6

Please sign in to comment.