This repository was archived by the owner on May 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
main/kotlin/at/bitfire/synctools/mapping/tasks
test/kotlin/at/bitfire/synctools/mapping/tasks/handler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import org.dmfs.tasks.contract.TaskContract.Property.Comment
4242import org.dmfs.tasks.contract.TaskContract.Property.Relation
4343import org.dmfs.tasks.contract.TaskContract.Tasks
4444import java.net.URISyntaxException
45+ import java.time.Instant
4546import java.time.temporal.Temporal
4647import java.util.logging.Level
4748import java.util.logging.Logger
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import androidx.core.content.contentValuesOf
1111import at.bitfire.ical4android.Task
1212import org.dmfs.tasks.contract.TaskContract.Tasks
1313import org.junit.Assert.assertEquals
14- import org.junit.Assert.assertNull
1514import org.junit.Test
1615import org.junit.runner.RunWith
1716import org.robolectric.RobolectricTestRunner
@@ -22,10 +21,10 @@ class PriorityHandlerTest {
2221 private val handler = PriorityHandler ()
2322
2423 @Test
25- fun `No PRIORITY` () {
24+ fun `No PRIORITY leaves priority at default (0) ` () {
2625 val task = Task ()
2726 handler.process(ContentValues (), task)
28- assertNull( task.priority)
27+ assertEquals( 0 , task.priority)
2928 }
3029
3130 @Test
You can’t perform that action at this time.
0 commit comments