Skip to content

Instantly share code, notes, and snippets.

@izmajlowiczl
Last active April 27, 2017 07:16
Show Gist options
  • Save izmajlowiczl/599cdb77eca73bedb79d678ae4c329c7 to your computer and use it in GitHub Desktop.
Save izmajlowiczl/599cdb77eca73bedb79d678ae4c329c7 to your computer and use it in GitHub Desktop.
@Test fun columnsForCategoryTable() {
val columns = getTableColumns(database.readableDatabase, "tbl_category")
assertThat(columns).containsExactly("uuid", "name", "color")
}
@Test fun createDefaultCategoriesTable() {
assertThat(database.readableDatabase.doesTableExist("tbl_category")).isTrue()
}
@Test fun createPolishCategoriesTable() {
assertThat(database.readableDatabase.doesTableExist("tbl_category_pl")).isTrue()
}
@Test fun createGermanCategoriesTable() {
assertThat(database.readableDatabase.doesTableExist("tbl_category_de")).isTrue()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment