aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTest.kt
blob: 3590e625fe1f33d584be9c778e14f23330b40414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.pitchedapps.frost.utils

import com.pitchedapps.frost.facebook.FbUrlFormatter
import org.junit.Test


/**
 * Created by Allan Wang on 2017-07-07.
 */
class UrlTest {

    @Test
    fun testParse() {
        val url = FbUrlFormatter(TEST_URL)
        url.log()
        println(url.toString())
    }

    private fun FbUrlFormatter.log() = toLogList().forEach { println(it) }
}

const val TEST_URL = "https://touch.facebook.com/ScienceOrientationWeek/?refid=52&_ft_=qid.6440135786032091148%3Amf_story_key.3325631938086219467%3Atop_level_post_id.1555752904487229%3Apage_id.525538540842009&__tn__=C"