public void TestAddProvince() throws Exception { MyWeatherDB myweather = MyWeatherDB.getInstance(getContext()); Province province = new Province(); province.setId(1); province.setProvinceName("¹ã¶«"); province.setProvinceCode("12"); myweather.saveProvince(province); }
public void TestLoadProvince() throws Exception { MyWeatherDB myweather = MyWeatherDB.getInstance(getContext()); ArrayList<Province> list = (ArrayList<Province>) myweather.loadProvince(); for (Province province : list) System.out.println(province.toString()); }
public void TestCreateDB() throws Exception { MyWeatherDB myweather = MyWeatherDB.getInstance(getContext()); }