package de.arxsilex.maptools.converter.desktop

import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue

class AppMetadataTest {
    @Test
    fun `program links use secure website and support address`() {
        assertTrue(AppMetadata.DEVELOPER_URL.startsWith("https://www.arxsilex.de/"))
        assertEquals("https://www.arxsilex.de/app/maptools/", AppMetadata.ANDROID_APP_URL)
        assertEquals("GPL-3.0-only", AppMetadata.SOFTWARE_LICENSE)
        assertTrue(AppMetadata.SOFTWARE_LICENSE_URL.startsWith("https://www.gnu.org/licenses/"))
        assertTrue(AppMetadata.IMPRINT_URL.endsWith("/impressum.html"))
        assertTrue(AppMetadata.PRIVACY_URL.endsWith("/datenschutz.html"))
        assertTrue(AppMetadata.LICENSES_URL.endsWith("/lizenzen.html"))
        assertEquals("mailto:support@arxsilex.de", AppMetadata.SUPPORT_MAIL_URL)
    }
}
