Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
chore(desktop): fix code's style
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed Jun 26, 2023
1 parent 48c0618 commit 084669f
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import com.intelligentbackpack.desktopdata.db.entities.Author
import com.intelligentbackpack.desktopdata.db.entities.Book
import com.intelligentbackpack.desktopdata.db.entities.SchoolSupply
import com.intelligentbackpack.desktopdata.db.entities.Wrote
import org.junit.Assert.*
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.junit.runner.RunWith

Expand All @@ -20,29 +21,29 @@ import org.junit.runner.RunWith
class DatabaseInstrumentedTest {
private val author1 = Author(
authorId = 1,
name = "Author 1"
name = "Author 1",
)
private val author2 = Author(
authorId = 2,
name = "Author 2"
name = "Author 2",
)
private val book = Book(
isbn = "1234567890",
title = "The Book"
title = "The Book",
)
private val wrote1 = Wrote(
isbn = book.isbn,
authorId = author1.authorId
authorId = author1.authorId,
)
private val wrote2 = Wrote(
isbn = book.isbn,
authorId = author2.authorId
authorId = author2.authorId,
)
private val schoolSupply = SchoolSupply(
rfid = "FF:FF:FF:FF",
type = 0,
isbn = book.isbn,
inBackpack = false
inBackpack = false,
)

private fun insertBook(db: DesktopDatabase) {
Expand Down Expand Up @@ -106,7 +107,7 @@ class DatabaseInstrumentedTest {
insertBook(db)
val author = Author(
authorId = 0,
name = "Author 3"
name = "Author 3",
)
val authorId = db.desktopDao().addAuthor(author)
val authorFromDB = db.desktopDao().getAuthor(authorId)
Expand Down

0 comments on commit 084669f

Please sign in to comment.