Submit Search
Upload
SQLite 周りのテストをしよう
•
Download as KEY, PDF
•
12 likes
•
3,040 views
U
ussy
Follow
第 1 回 Android テスト祭りで SQ発表した資料
Read less
Read more
Technology
Art & Photos
Report
Share
Report
Share
1 of 28
Download now
Recommended
The Ring programming language version 1.7 book - Part 32 of 196
The Ring programming language version 1.7 book - Part 32 of 196
Mahmoud Samir Fayed
Using xUnit as a Swiss-Aarmy Testing Toolkit
Using xUnit as a Swiss-Aarmy Testing Toolkit
Chris Oldwood
The Ring programming language version 1.5.1 book - Part 27 of 180
The Ring programming language version 1.5.1 book - Part 27 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 37 of 212
The Ring programming language version 1.10 book - Part 37 of 212
Mahmoud Samir Fayed
Vielseitiges In-Memory Computing mit Apache Ignite und Kubernetes
Vielseitiges In-Memory Computing mit Apache Ignite und Kubernetes
QAware GmbH
The Ring programming language version 1.5.2 book - Part 28 of 181
The Ring programming language version 1.5.2 book - Part 28 of 181
Mahmoud Samir Fayed
Viewpic
Viewpic
Jay-r'vampy Reloaded
Android Architecture - Khoa Tran
Android Architecture - Khoa Tran
Tu Le Dinh
Recommended
The Ring programming language version 1.7 book - Part 32 of 196
The Ring programming language version 1.7 book - Part 32 of 196
Mahmoud Samir Fayed
Using xUnit as a Swiss-Aarmy Testing Toolkit
Using xUnit as a Swiss-Aarmy Testing Toolkit
Chris Oldwood
The Ring programming language version 1.5.1 book - Part 27 of 180
The Ring programming language version 1.5.1 book - Part 27 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 37 of 212
The Ring programming language version 1.10 book - Part 37 of 212
Mahmoud Samir Fayed
Vielseitiges In-Memory Computing mit Apache Ignite und Kubernetes
Vielseitiges In-Memory Computing mit Apache Ignite und Kubernetes
QAware GmbH
The Ring programming language version 1.5.2 book - Part 28 of 181
The Ring programming language version 1.5.2 book - Part 28 of 181
Mahmoud Samir Fayed
Viewpic
Viewpic
Jay-r'vampy Reloaded
Android Architecture - Khoa Tran
Android Architecture - Khoa Tran
Tu Le Dinh
MySql:Basics
MySql:Basics
DataminingTools Inc
MySql:Introduction
MySql:Introduction
DataminingTools Inc
Presentation Android Architecture Components
Presentation Android Architecture Components
Attract Group
Android Architecture components
Android Architecture components
Michelantonio Trizio
Windows 8 Training Fundamental - 1
Windows 8 Training Fundamental - 1
Kevin Octavian
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.6 book - Part 31 of 189
Mahmoud Samir Fayed
Architecture Components
Architecture Components
Sang Eel Kim
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.5.4 book - Part 29 of 185
Mahmoud Samir Fayed
Html web sql database
Html web sql database
AbhishekMondal42
Clustering your Application with Hazelcast
Clustering your Application with Hazelcast
Hazelcast
The Ring programming language version 1.5.3 book - Part 29 of 184
The Ring programming language version 1.5.3 book - Part 29 of 184
Mahmoud Samir Fayed
Android architecture components
Android architecture components
Diego Figueredo
Entity System Architecture with Unity - Unite Europe 2015
Entity System Architecture with Unity - Unite Europe 2015
Simon Schmid
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
Mahmoud Samir Fayed
Creating, Updating and Deleting Document in MongoDB
Creating, Updating and Deleting Document in MongoDB
Wildan Maulana
Android sq lite-chapter 22
Android sq lite-chapter 22
Dr. Ramkumar Lakshminarayanan
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
Sirar Salih
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.9 book - Part 36 of 210
Mahmoud Samir Fayed
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
Windows Mobile 5.0 Data Access And Storage Webcast
Windows Mobile 5.0 Data Access And Storage Webcast
Vinod Kumar
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
ShaiAlmog1
Unit testing with mock libs
Unit testing with mock libs
Valentin Kolesnikov
More Related Content
What's hot
MySql:Basics
MySql:Basics
DataminingTools Inc
MySql:Introduction
MySql:Introduction
DataminingTools Inc
Presentation Android Architecture Components
Presentation Android Architecture Components
Attract Group
Android Architecture components
Android Architecture components
Michelantonio Trizio
Windows 8 Training Fundamental - 1
Windows 8 Training Fundamental - 1
Kevin Octavian
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.6 book - Part 31 of 189
Mahmoud Samir Fayed
Architecture Components
Architecture Components
Sang Eel Kim
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.5.4 book - Part 29 of 185
Mahmoud Samir Fayed
Html web sql database
Html web sql database
AbhishekMondal42
Clustering your Application with Hazelcast
Clustering your Application with Hazelcast
Hazelcast
The Ring programming language version 1.5.3 book - Part 29 of 184
The Ring programming language version 1.5.3 book - Part 29 of 184
Mahmoud Samir Fayed
Android architecture components
Android architecture components
Diego Figueredo
Entity System Architecture with Unity - Unite Europe 2015
Entity System Architecture with Unity - Unite Europe 2015
Simon Schmid
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
Mahmoud Samir Fayed
Creating, Updating and Deleting Document in MongoDB
Creating, Updating and Deleting Document in MongoDB
Wildan Maulana
Android sq lite-chapter 22
Android sq lite-chapter 22
Dr. Ramkumar Lakshminarayanan
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
Sirar Salih
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.9 book - Part 36 of 210
Mahmoud Samir Fayed
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
Windows Mobile 5.0 Data Access And Storage Webcast
Windows Mobile 5.0 Data Access And Storage Webcast
Vinod Kumar
What's hot
(20)
MySql:Basics
MySql:Basics
MySql:Introduction
MySql:Introduction
Presentation Android Architecture Components
Presentation Android Architecture Components
Android Architecture components
Android Architecture components
Windows 8 Training Fundamental - 1
Windows 8 Training Fundamental - 1
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.6 book - Part 31 of 189
Architecture Components
Architecture Components
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.5.4 book - Part 29 of 185
Html web sql database
Html web sql database
Clustering your Application with Hazelcast
Clustering your Application with Hazelcast
The Ring programming language version 1.5.3 book - Part 29 of 184
The Ring programming language version 1.5.3 book - Part 29 of 184
Android architecture components
Android architecture components
Entity System Architecture with Unity - Unite Europe 2015
Entity System Architecture with Unity - Unite Europe 2015
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
Creating, Updating and Deleting Document in MongoDB
Creating, Updating and Deleting Document in MongoDB
Android sq lite-chapter 22
Android sq lite-chapter 22
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
Azure Table Storage: The Good, the Bad, the Ugly (15 min. lightning talk)
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.9 book - Part 36 of 210
Accessing data with android cursors
Accessing data with android cursors
Windows Mobile 5.0 Data Access And Storage Webcast
Windows Mobile 5.0 Data Access And Storage Webcast
Similar to SQLite 周りのテストをしよう
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
ShaiAlmog1
Unit testing with mock libs
Unit testing with mock libs
Valentin Kolesnikov
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
I am looking for some assistance with SQLite database. I have tried se.pdf
I am looking for some assistance with SQLite database. I have tried se.pdf
Conint29
Bkbiet day2 & 3
Bkbiet day2 & 3
mihirio
#18.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_국비지원IT학원/실업자/재직자환급교육/자바/스프링/...
#18.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_국비지원IT학원/실업자/재직자환급교육/자바/스프링/...
탑크리에듀(구로디지털단지역3번출구 2분거리)
Test-driven Development with AEM
Test-driven Development with AEM
Jan Wloka
比XML更好用的Java Annotation
比XML更好用的Java Annotation
javatwo2011
Selenium Webdriver with data driven framework
Selenium Webdriver with data driven framework
David Rajah Selvaraj
Requery overview
Requery overview
Sunghyouk Bae
Wicket 6
Wicket 6
codepitbull
ERRest
ERRest
WO Community
Beautiful java script
Beautiful java script
Ürgo Ringo
Vaadin7
Vaadin7
Joonas Lehtinen
Teste de Integração com DbUnit e jIntegrity
Teste de Integração com DbUnit e jIntegrity
Washington Botelho
Deep dive into new ASP.NET MVC 4 Features
Deep dive into new ASP.NET MVC 4 Features
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
Initial UI Mockup - Part 3.pdf
Initial UI Mockup - Part 3.pdf
ShaiAlmog1
【Unity】Scriptable object 入門と活用例
【Unity】Scriptable object 入門と活用例
Unity Technologies Japan K.K.
Learning Java 4 – Swing, SQL, and Security API
Learning Java 4 – Swing, SQL, and Security API
caswenson
package net.codejava.swing.mail;import java.awt.Font;import java.pdf
package net.codejava.swing.mail;import java.awt.Font;import java.pdf
sudhirchourasia86
Similar to SQLite 周りのテストをしよう
(20)
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
Unit testing with mock libs
Unit testing with mock libs
Accessing data with android cursors
Accessing data with android cursors
I am looking for some assistance with SQLite database. I have tried se.pdf
I am looking for some assistance with SQLite database. I have tried se.pdf
Bkbiet day2 & 3
Bkbiet day2 & 3
#18.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_국비지원IT학원/실업자/재직자환급교육/자바/스프링/...
#18.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_국비지원IT학원/실업자/재직자환급교육/자바/스프링/...
Test-driven Development with AEM
Test-driven Development with AEM
比XML更好用的Java Annotation
比XML更好用的Java Annotation
Selenium Webdriver with data driven framework
Selenium Webdriver with data driven framework
Requery overview
Requery overview
Wicket 6
Wicket 6
ERRest
ERRest
Beautiful java script
Beautiful java script
Vaadin7
Vaadin7
Teste de Integração com DbUnit e jIntegrity
Teste de Integração com DbUnit e jIntegrity
Deep dive into new ASP.NET MVC 4 Features
Deep dive into new ASP.NET MVC 4 Features
Initial UI Mockup - Part 3.pdf
Initial UI Mockup - Part 3.pdf
【Unity】Scriptable object 入門と活用例
【Unity】Scriptable object 入門と活用例
Learning Java 4 – Swing, SQL, and Security API
Learning Java 4 – Swing, SQL, and Security API
package net.codejava.swing.mail;import java.awt.Font;import java.pdf
package net.codejava.swing.mail;import java.awt.Font;import java.pdf
Recently uploaded
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Orbitshub
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Zilliz
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Recently uploaded
(20)
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
SQLite 周りのテストをしよう
1.
2.
3.
4.
5.
6.
7.
8.
9.
context = new
RenamingDelegatingContext( getContext(), "test_" ); helper = new TestterSQLiteOpenHelper( context );
10.
11.
12.
13.
14.
15.
16.
public class IconSQLiteDaoTest
extends DatabaseTestCase { private IconDao iconDao; @Override protected void setUp() throws Exception { super.setUp(); importData(FileType.Yaml, "IconSQLiteDaoTest"); iconDao = new IconSQLiteDao(getSQLiteDatabase()); } @Override protected SQLiteOpenHelper createSQLiteOpenHelper() { return new TestterSQLiteOpenHelper(getDatabaseContext()); } public void testFindByUrl() { Icon icon = iconDao.findByUrl("http://a2.twimg.com/ profile_images/1039340061/face_normal.png"); assertEquals(1, icon.id.intValue()); assertEquals("http://a2.twimg.com/profile_images/1039340061/ face_normal.png", icon.url); assertEquals(1307203506481L, icon.createdAt.longValue());
17.
18.
19.
20.
21.
22.
23.
public class MigrationTest
extends DatabaseTestCase { @Override protected SQLiteOpenHelper createSQLiteOpenHelper() { return new FixtureV1MigrationOpenHelper(getDatabaseContext()); } public void testV1Migration() { importData(FileType.Csv, "migrationTest"); ColumnInfo[] infos = loadColumnInfos("user"); assertEquals(5, infos.length); assertEquals("_id", infos[0].getName()); assertEquals("name", infos[1].getName()); assertEquals("weight", infos[2].getName()); assertEquals("image", infos[3].getName()); assertEquals("created", infos[4].getName()); replaceSQLiteOpenHelper(new FixtureMigrationOpenHelper(getDatabaseContext())); infos = loadColumnInfos("user"); assertEquals(6, infos.length);
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Download now