From eae50462cd4335901e3a2a3683109b241a348748 Mon Sep 17 00:00:00 2001 From: zt515 Date: Fri, 28 Jul 2017 12:14:06 +0800 Subject: [PATCH] Project: Add Travis CI build --- .../test/java/io/neoterm/ExampleUnitTest.kt | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/app/src/test/java/io/neoterm/ExampleUnitTest.kt b/app/src/test/java/io/neoterm/ExampleUnitTest.kt index e59137e..568044e 100644 --- a/app/src/test/java/io/neoterm/ExampleUnitTest.kt +++ b/app/src/test/java/io/neoterm/ExampleUnitTest.kt @@ -10,27 +10,5 @@ import java.net.URL * * @see [Testing documentation](http://d.android.com/tools/testing) */ -class ExampleUnitTest { - @Test - @Throws(Exception::class) - fun test_config_parser() { - val pm = NeoPackageManager.get() - pm.refreshPackageList(File("/Users/kiva/1.txt"), true) - val clang = pm.getPackageInfo("clang") - println(">>> Parsed ${pm.packageCount} packages.") - } +class ExampleUnitTest - @Test - fun test_url() { - val url = URL("https://mirrors.geekpie.org/neoterm") - val builder = StringBuilder() - builder.append(url.host) - builder.append("_") - if (url.path.isNotEmpty()) { - builder.append(url.path.substring(1)) // Skip '/' - } - builder.append("_dists_stable_main_binary-") - val packageListFileName = builder.toString() - println(packageListFileName) - } -} \ No newline at end of file