我想測試,如果我的等級寫在包裹正確的數據,所以我寫了下面的測試: @Test
public void parcelOutAndIn() {
Trip trip = new Trip("id123", new Date());
Parcel parcel = Parcel.obtain();
trip.writeToParcel(parcel, 0);
T
的Mockito 我試圖使用roboelectric和框架的Mockito包含handler.sendMessage(msg): public void emailLogin(){
...
mHandler.sendMessage(message);
}
Handler mHandler = new Handler(new Callback() {
public b