 |
android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed - zx19899891的專欄
在android進行單元測試時,測試了自己編寫的添加數據到資料庫的函數,其測試函數如下:public void testAdd() { StudentDAO studentDAO = new StudentDAO(this.getContext()); Student student = new Student(1, lily, 20); studentDAO.add
blog.csdn.net |
 |