Skip to content

Commit c202a3d

Browse files
committed
test: add JavaVersionUtilTests
1 parent ef84b91 commit c202a3d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

library/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
<artifactId>commons-io</artifactId>
6363
<scope>test</scope>
6464
</dependency>
65+
<dependency>
66+
<groupId>org.apache.commons</groupId>
67+
<artifactId>commons-lang3</artifactId>
68+
<scope>test</scope>
69+
</dependency>
6570
</dependencies>
6671

6772
<build>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.alibaba.dcm.internal
2+
3+
import io.kotest.core.spec.style.FunSpec
4+
import io.kotest.matchers.shouldBe
5+
import org.apache.commons.lang3.JavaVersion
6+
import org.apache.commons.lang3.SystemUtils
7+
8+
class JavaVersionUtilTests : FunSpec({
9+
test("isJdkAtMost8") {
10+
JavaVersionUtil.isJdkAtMost8() shouldBe SystemUtils.isJavaVersionAtMost(JavaVersion.JAVA_1_8)
11+
}
12+
})

0 commit comments

Comments
 (0)