summaryrefslogtreecommitdiff
path: root/main/src/testui
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-03 02:29:42 +0200
committerArne Schwabe <arne@rfc2549.org>2021-10-03 02:53:26 +0200
commitc3a0f99f9058b5ee602a9f19f7453804d4d26928 (patch)
treeee45ddf9fc2ce4b21273a71e7be1b6367628f83b /main/src/testui
parentba7fedf2030dcdf13f7a2cf83559e4daa14f623c (diff)
Move Ui specific unit tests to Ui specific test file
Diffstat (limited to 'main/src/testui')
-rw-r--r--main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt b/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt
new file mode 100644
index 00000000..8bc2e4fa
--- /dev/null
+++ b/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt
@@ -0,0 +1,12 @@
+import de.blinkt.openvpn.fragments.Utils
+import org.junit.Assert
+import org.junit.Test
+
+class TestUiUtils {
+ @Test
+ fun testCompatModeUtil() {
+ Assert.assertEquals(2, Utils.mapCompatVer(20400))
+ Assert.assertEquals(0, Utils.mapCompatVer(20707))
+ Assert.assertEquals(3, Utils.mapCompatVer(11723))
+ }
+} \ No newline at end of file