????3?????????????????????StudentDaoTest.java

????????????

package com.dd.dd.dao;

import android.test.AndroidTestCase;
import android.util.Log;

import com.dd.dd.model.Student;

public class StudentDaoTest extends AndroidTestCase {
 private static final String TAG = "StudentDaoTest"; // ?????

 public void testadd() {
  Log.i(TAG?? "?????????????"); // ??????
  StudentDao studentDao = new StudentDao(this.getContext()); // ????StudentDao???????????this.getContext()
  Student student = new Student(); // ????Student?????Student??bean??
  student.setId(1); // ????????
  student.setName("????");
  studentDao.add(student);// ????add????
  Log.i(TAG?? "???????????");
 }
}

?????????Щ???????????д???Student?????????

????????????????id ???????name ????????????????????

????????????в????????????????