This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jelly.git
commit 9d38fe2d192c4892e81280f2e4bbd5424e9060b8 Author: Gary Gregory <[email protected]> AuthorDate: Sun Jan 4 10:35:16 2026 -0500 Javadoc --- .../commons/jelly/tags/regexp/ContainsTagTest.java | 40 +++++++-------- .../commons/jelly/tags/regexp/MatchTagTest.java | 57 ++++++++++------------ 2 files changed, 43 insertions(+), 54 deletions(-) diff --git a/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/ContainsTagTest.java b/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/ContainsTagTest.java index d0cf79b4..81f42b59 100644 --- a/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/ContainsTagTest.java +++ b/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/ContainsTagTest.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.commons.jelly.tags.regexp; import org.apache.commons.jelly.JellyContext; @@ -21,38 +22,31 @@ import org.apache.commons.jelly.XMLOutput; import junit.framework.TestCase; -/*** <p>{@code ContainsTagTest} a class that is useful to perform regexp matches -* in strings.</p> -*/ +/** + * Performs regexp matches in strings. + */ public class ContainsTagTest extends TestCase { - public ContainsTagTest(final String name) - { - super(name); + public ContainsTagTest(final String name) { + super(name); } @Override - public void setUp() throws Exception - { + public void setUp() throws Exception { } @Override - public void tearDown() - { + public void tearDown() { } - public void testDoTag() throws Exception - { - final ContainsTag containsExpTag = new ContainsTag(); - final XMLOutput xmlOutput = new XMLOutput(); - - containsExpTag.setText("Hello World"); - containsExpTag.setExpr("World"); - containsExpTag.setVar("testvar"); - containsExpTag.setContext(new JellyContext()); - containsExpTag.doTag(xmlOutput); - - assertEquals("TRUE", containsExpTag.getContext().getVariable("testvar").toString().toUpperCase()); + public void testDoTag() throws Exception { + final ContainsTag containsExpTag = new ContainsTag(); + final XMLOutput xmlOutput = new XMLOutput(); + containsExpTag.setText("Hello World"); + containsExpTag.setExpr("World"); + containsExpTag.setVar("testvar"); + containsExpTag.setContext(new JellyContext()); + containsExpTag.doTag(xmlOutput); + assertEquals("TRUE", containsExpTag.getContext().getVariable("testvar").toString().toUpperCase()); } - } diff --git a/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/MatchTagTest.java b/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/MatchTagTest.java index 78e06f9f..08973ca5 100644 --- a/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/MatchTagTest.java +++ b/jelly-tags/regexp/src/test/java/org/apache/commons/jelly/tags/regexp/MatchTagTest.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.commons.jelly.tags.regexp; import org.apache.commons.jelly.JellyContext; @@ -21,37 +22,31 @@ import org.apache.commons.jelly.XMLOutput; import junit.framework.TestCase; -/*** <p>{@code MatchTagTest} a class that is useful to perform regexp matches -* in strings.</p> -*/ +/** + * Performs regexp matches in strings. + */ public class MatchTagTest extends TestCase { - public MatchTagTest(final String name) - { - super(name); - } - - @Override -public void setUp() throws Exception - { - } - - @Override -public void tearDown() - { - } - - public void testDoTag() throws Exception - { - final MatchTag matchExpTag = new MatchTag(); - final XMLOutput xmlOutput = new XMLOutput(); - - matchExpTag.setText("ID1234"); - matchExpTag.setExpr("[A-Z][A-Z][0-9]{4}"); - matchExpTag.setVar("testvar"); - matchExpTag.setContext(new JellyContext()); - matchExpTag.doTag(xmlOutput); - - assertEquals("TRUE", matchExpTag.getContext().getVariable("testvar").toString().toUpperCase()); - } + public MatchTagTest(final String name) { + super(name); + } + + @Override + public void setUp() throws Exception { + } + + @Override + public void tearDown() { + } + + public void testDoTag() throws Exception { + final MatchTag matchExpTag = new MatchTag(); + final XMLOutput xmlOutput = new XMLOutput(); + matchExpTag.setText("ID1234"); + matchExpTag.setExpr("[A-Z][A-Z][0-9]{4}"); + matchExpTag.setVar("testvar"); + matchExpTag.setContext(new JellyContext()); + matchExpTag.doTag(xmlOutput); + assertEquals("TRUE", matchExpTag.getContext().getVariable("testvar").toString().toUpperCase()); + } } \ No newline at end of file
