@@ -0,0 +1,1822 @@
+package org.mozilla.focus.utils;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.RuntimeEnvironment;%0A%0Aimport java.util.Locale;%0A%0Aimport static org.junit.Assert.*;%0A%0A@RunWith(RobolectricTestRunner.class)%0Apublic class SupportUtilsTest %7B%0A%0A    @Test%0A    public void cleanup() %7B%0A        // Other tests might get confused by our locale fiddling, so lets go back to the default:%0A        Locale.setDefault(Locale.ENGLISH);%0A    %7D%0A%0A    /*%0A     * Super simple sumo URL test - it exists primarily to verify that we're setting the language%0A     * and page tags correctly. appVersion is null in tests, so we just test that there's a null there,%0A     * which doesn't seem too useful...%0A     */%0A    @Test%0A    public void getSumoURLForTopic() throws Exception %7B%0A        Locale.setDefault(Locale.GERMANY);%0A        assertEquals(%22https://support.mozilla.org/1/mobile/null/Android/de-DE/foobar%22,%0A                SupportUtils.getSumoURLForTopic(RuntimeEnvironment.application, %22foobar%22));%0A%0A        Locale.setDefault(Locale.CANADA_FRENCH);%0A        assertEquals(%22https://support.mozilla.org/1/mobile/null/Android/fr-CA/foobar%22,%0A                SupportUtils.getSumoURLForTopic(RuntimeEnvironment.application, %22foobar%22));%0A    %7D%0A%0A    /**%0A     * This is a pretty boring tests - it exists primarily to verify that we're actually setting%0A     * a langtag in the manfiesto URL.%0A     */%0A    @Test%0A    public void getManifestoURL() throws Exception %7B%0A        Locale.setDefault(Locale.UK);%0A        assertEquals(%22https://www.mozilla.org/en-GB/about/manifesto/%22,%0A                SupportUtils.getManifestoURL());%0A%0A        Locale.setDefault(Locale.KOREA);%0A        assertEquals(%22https://www.mozilla.org/ko-KR/about/manifesto/%22,%0A                SupportUtils.getManifestoURL());%0A    %7D%0A%0A%7D

Add SupportUtilsTest