mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
654 B
Kotlin
25 lines
654 B
Kotlin
package com.todoroo.astrid.sync
|
|
|
|
import com.todoroo.astrid.data.Task
|
|
import dagger.hilt.android.testing.HiltAndroidTest
|
|
import dagger.hilt.android.testing.UninstallModules
|
|
import org.junit.Assert.assertNotEquals
|
|
import org.junit.Test
|
|
import org.tasks.injection.ProductionModule
|
|
|
|
@UninstallModules(ProductionModule::class)
|
|
@HiltAndroidTest
|
|
class SyncModelTest : NewSyncTestCase() {
|
|
|
|
@Test
|
|
fun testCreateTaskMakesUuid() {
|
|
val task = createTask()
|
|
assertNotEquals(Task.NO_UUID, task.uuid)
|
|
}
|
|
|
|
@Test
|
|
fun testCreateTagMakesUuid() {
|
|
val tag = createTagData()
|
|
assertNotEquals(Task.NO_UUID, tag.remoteId)
|
|
}
|
|
} |