You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/03/19 16:46:36 UTC

[commons-jexl] branch master updated: Javadoc: Convert package.html to package-info.java

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-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new dcb05385 Javadoc: Convert package.html to package-info.java
dcb05385 is described below

commit dcb053855b35a44eb6a50e0a357ee9d56f99a8e6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 19 12:46:32 2023 -0400

    Javadoc: Convert package.html to package-info.java
---
 .../apache/commons/jexl3/junit/package-info.java   | 43 ++++++++++++++++++++
 .../org/apache/commons/jexl3/junit/package.html    | 47 ----------------------
 2 files changed, 43 insertions(+), 47 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/junit/package-info.java b/src/test/java/org/apache/commons/jexl3/junit/package-info.java
new file mode 100644
index 00000000..db7c7ff8
--- /dev/null
+++ b/src/test/java/org/apache/commons/jexl3/junit/package-info.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Using JEXL expressions in JUnit assertions.
+ * <h2><a id="intro">Introduction</a></h2>
+ * <p>
+ * This package only contains one class, Asserter, which
+ * allows you to use a JEXL expression in a JUnit assertion.
+ * The following example demonstrates the use of the Asserter
+ * class.  An instance is created, and the internal JexlContext
+ * is populated via calls to setVariable().  Calls to
+ * assertExpression() succeed if the expression evaluates to
+ * the value of the second parameter, otherwise an
+ * AssertionFailedException is thrown.
+ * </p>
+ *
+ * <pre>
+ * Asserter asserter = new Asserter();
+ * asserter.setVariable("foo", new Foo());
+ * asserter.setVariable("person", "James");
+ * asserter.assertExpression("person", "James");
+ * asserter.assertExpression("size(person)", new Integer(5));
+ *
+ * asserter.assertExpression("foo.getCount()", new Integer(5));
+ * asserter.assertExpression("foo.count", new Integer(5));
+ * </pre>
+ */
+package org.apache.commons.jexl3.junit;
diff --git a/src/test/java/org/apache/commons/jexl3/junit/package.html b/src/test/java/org/apache/commons/jexl3/junit/package.html
deleted file mode 100644
index 7d2a89b2..00000000
--- a/src/test/java/org/apache/commons/jexl3/junit/package.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
- <head>
-  <title>Package Documentation for org.apache.commons.jexl3.junit Package</title>
- </head>
- <body>
-  Using JEXL expressions in JUnit assertions.
-  <h2><a id="intro">Introduction</a></h2>
-  <p>
-   This package only contains one class, Asserter, which
-   allows you to use a JEXL expression in a JUnit assertion.
-   The following example demonstrates the use of the Asserter
-   class.  An instance is created, and the internal JexlContext
-   is populated via calls to setVariable().  Calls to 
-   assertExpression() succeed if the expression evaluates to
-   the value of the second parameter, otherwise an 
-   AssertionFailedException is thrown.
-  </p>
-  
-  <pre>
-   Asserter asserter = new Asserter();
-   asserter.setVariable("foo", new Foo());
-   asserter.setVariable("person", "James");
-
-   asserter.assertExpression("person", "James");
-   asserter.assertExpression("size(person)", new Integer(5));
-        
-   asserter.assertExpression("foo.getCount()", new Integer(5));
-   asserter.assertExpression("foo.count", new Integer(5));
-  </pre>
-</body>
-</html>