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

commit 0ab001047b9387754f77afd014612bf2098874a1
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jun 14 08:27:07 2025 -0400

    Add missing test per JaCoCo test coverage
---
 .../java/org/apache/commons/lang3/stream/IntStreamsTest.java | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/stream/IntStreamsTest.java 
b/src/test/java/org/apache/commons/lang3/stream/IntStreamsTest.java
index 153e5735a..1fdf0529c 100644
--- a/src/test/java/org/apache/commons/lang3/stream/IntStreamsTest.java
+++ b/src/test/java/org/apache/commons/lang3/stream/IntStreamsTest.java
@@ -14,10 +14,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.commons.lang3.stream;
 
 import static org.junit.jupiter.api.Assertions.assertArrayEquals;
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 import org.apache.commons.lang3.AbstractLangTest;
 import org.junit.jupiter.api.Test;
@@ -27,6 +29,12 @@
  */
 class IntStreamsTest extends AbstractLangTest {
 
+    @SuppressWarnings("deprecation")
+    @Test
+    void testDeprecatedConstructor() {
+        assertNotNull(new IntStreams().toString());
+    }
+
     @Test
     void testOfArray() {
         assertEquals(0, IntStreams.of((int[]) null).count());
@@ -36,11 +44,11 @@ void testOfArray() {
 
     @Test
     void testRange() {
-        assertArrayEquals(new int[] {0, 1}, IntStreams.range(2).toArray());
+        assertArrayEquals(new int[] { 0, 1 }, IntStreams.range(2).toArray());
     }
 
     @Test
     void testRangeClosed() {
-        assertArrayEquals(new int[] {0, 1, 2}, 
IntStreams.rangeClosed(2).toArray());
+        assertArrayEquals(new int[] { 0, 1, 2 }, 
IntStreams.rangeClosed(2).toArray());
     }
 }

Reply via email to