@@ -0,0 +1,1955 @@
+/*%0A * Copyright (C) 2014 The Android Open Source Project%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.example.android.sunshine.app.data;%0A%0Aimport android.test.AndroidTestCase;%0A%0A/*%0A    Students: This is NOT a complete test for the WeatherContract --- just for the functions%0A    that we expect you to write.%0A */%0Apublic class TestWeatherContract extends AndroidTestCase %7B%0A%0A    // intentionally includes a slash to make sure Uri is getting quoted correctly%0A    private static final String TEST_WEATHER_LOCATION = %22/North Pole%22;%0A    private static final long TEST_WEATHER_DATE = 1419033600L;  // December 20th, 2014%0A%0A    /*%0A        Students: Uncomment this out to test your weather location function.%0A     */%0A//    public void testBuildWeatherLocation() %7B%0A//        Uri locationUri = WeatherContract.WeatherEntry.buildWeatherLocation(TEST_WEATHER_LOCATION);%0A//        assertNotNull(%22Error: Null Uri returned.  You must fill-in buildWeatherLocation in %22 +%0A//                        %22WeatherContract.%22,%0A//                locationUri);%0A//        assertEquals(%22Error: Weather location not properly appended to the end of the Uri%22,%0A//                TEST_WEATHER_LOCATION, locationUri.getLastPathSegment());%0A//        assertEquals(%22Error: Weather location Uri doesn't match our expected result%22,%0A//                locationUri.toString(),%0A//                %22content://com.example.android.sunshine.app/weather/%252FNorth%2520Pole%22);%0A//    %7D%0A%7D

Create TestWeatherContract