Back to project page WeatherBar.
The source code is released under:
MIT License
If you think the Android project WeatherBar listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cjbarker.wb.ws; /* w ww . j av a 2s.c om*/ import com.cjbarker.wb.ws.Weather.Forecast; import com.cjbarker.wb.ws.Weather.Location; import junit.framework.TestCase; public class WeatherTest extends TestCase { private static final Location LOC_AUSTIN = new Location("Austin", "TX"); private Weather weather; @Override protected void setUp() throws Exception { super.setUp(); this.weather = new OpenWeather(); } public void testGetToday() { Forecast fc = weather.getToday(LOC_AUSTIN); assertNotNull(fc); assertNotNull(fc.cloudDescp); assertNotNull(fc.location); assertNotNull(fc.sun); assertNotNull(fc.temperature); assertNotNull(fc.wind); assertTrue(fc.toString() != null && !fc.toString().trim().equals("")); } }