Skip to content

Commit 0ab0010

Browse files
committed
Add missing test per JaCoCo test coverage
1 parent ca3c842 commit 0ab0010

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/test/java/org/apache/commons/lang3/stream/IntStreamsTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
package org.apache.commons.lang3.stream;
1819

1920
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2021
import static org.junit.jupiter.api.Assertions.assertEquals;
22+
import static org.junit.jupiter.api.Assertions.assertNotNull;
2123

2224
import org.apache.commons.lang3.AbstractLangTest;
2325
import org.junit.jupiter.api.Test;
@@ -27,6 +29,12 @@
2729
*/
2830
class IntStreamsTest extends AbstractLangTest {
2931

32+
@SuppressWarnings("deprecation")
33+
@Test
34+
void testDeprecatedConstructor() {
35+
assertNotNull(new IntStreams().toString());
36+
}
37+
3038
@Test
3139
void testOfArray() {
3240
assertEquals(0, IntStreams.of((int[]) null).count());
@@ -36,11 +44,11 @@ void testOfArray() {
3644

3745
@Test
3846
void testRange() {
39-
assertArrayEquals(new int[] {0, 1}, IntStreams.range(2).toArray());
47+
assertArrayEquals(new int[] { 0, 1 }, IntStreams.range(2).toArray());
4048
}
4149

4250
@Test
4351
void testRangeClosed() {
44-
assertArrayEquals(new int[] {0, 1, 2}, IntStreams.rangeClosed(2).toArray());
52+
assertArrayEquals(new int[] { 0, 1, 2 }, IntStreams.rangeClosed(2).toArray());
4553
}
4654
}

0 commit comments

Comments
 (0)