Android?????????洢????SQLite?????
???????????? ???????[ 2014/6/23 13:31:54 ] ????????Android SQLite ?????
????Test.java:
/**
* ?????????????
* ???????????SQLiteOpenHelper?????????????
* ??????????????????????????
* 1.sql????????SQLite?????
* 2.???????api??SQLite?????????
* 3.SQLite??????????
*/
import com.ghsy.createsqlitedb.db.MyOpenHelper;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.test.AndroidTestCase;
public class Test extends AndroidTestCase {
MyOpenHelper oh;
SQLiteDatabase db;
public void test() {
// ???????MyOpenHelper????
// ????????汾????????upgrade????--upgrade?????м?????????
MyOpenHelper oh = new MyOpenHelper(getContext()?? "people.db"?? null?? 3);
// ????????????????????????????????????????????????
SQLiteDatabase db = oh.getWritableDatabase();
db.close();
}
// ????????????
/**
* This method is called before a test is executed
*/
@Override
protected void setUp() throws Exception {
// TODO Auto-generated method stub
super.setUp();
oh = new MyOpenHelper(getContext()?? "people.db"?? null?? 3);
db = oh.getWritableDatabase();
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Android???????????????Щ???????????Android????????????????????????Щ??Android ??????????????????????????APP?????android???????????????Android App ?????????Android Unit Test ?????Android?????????Robolectric3.0????(?)Android??????????????Android Studio???????????Android????MySQL????????????????Android MVP???????Android ?????????ActiveAndroid??дAndroid??????????????????????Android????????Java??????????Android????????Java8Java / Android ????????????????Щ??
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????