com.example.android.sunshine.data.TestSunshineDatabase.testInsertSingleRecordIntoWeatherTable()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中com.example.android.sunshine.data.TestSunshineDatabase.testInsertSingleRecordIntoWeatherTable()方法的一些代码示例,展示了TestSunshineDatabase.testInsertSingleRecordIntoWeatherTable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TestSunshineDatabase.testInsertSingleRecordIntoWeatherTable()方法的具体详情如下:
包路径:com.example.android.sunshine.data.TestSunshineDatabase
类名称:TestSunshineDatabase
方法名:testInsertSingleRecordIntoWeatherTable

TestSunshineDatabase.testInsertSingleRecordIntoWeatherTable介绍

[英]This method tests inserting a single record into an empty table from a brand new database. It will fail for the following reasons:

  1. Problem creating the database 2) A value of -1 for the ID of a single, inserted record 3) An empty cursor returned from query on the weather table 4) Actual values of weather data not matching the values from TestUtilities
    [中]这个方法测试从一个全新的数据库向一个空表中插入一条记录。它将失败,原因如下:
    1) 创建数据库时出现问题2)单个插入记录的ID值为-1 3)查询天气表返回的空光标4)天气数据的实际值与TestUtilities的值不匹配

代码示例

代码示例来源:origin: udacity/ud851-Sunshine

public void testOnUpgradeBehavesCorrectly() {
  testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

public void testOnUpgradeBehavesCorrectly() {
  testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

代码示例来源:origin: udacity/ud851-Sunshine

testInsertSingleRecordIntoWeatherTable();

相关文章

微信公众号

最新文章

更多