summaryrefslogtreecommitdiff
path: root/main/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/test/java')
-rw-r--r--main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
index e66d4cad..d4a4f61b 100644
--- a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
+++ b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
@@ -96,7 +96,8 @@ class TestConfigParser {
"<connection>\n" +
"remote foo.bar\n" +
"tun-mtu 1222\n" +
- "</connection>\n")
+ "</connection>\n" +
+ "route 8.8.8.8 255.255.255.255 net_gateway\n")
val cp = ConfigParser()
cp.parseConfig(StringReader(config))
@@ -105,6 +106,7 @@ class TestConfigParser {
Assert.assertEquals(1234, vp.mTunMtu.toLong())
Assert.assertTrue(vp.mConnections[0].mCustomConfiguration.contains("tun-mtu 1222"))
Assert.assertTrue(vp.mConnections[0].mUseCustomConfig)
+ Assert.assertEquals(vp.mExcludedRoutes.trim(), "8.8.8.8/32");
}
@Test