Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Oct 28, 2024
1 parent 095b316 commit 6e0c1c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.odk.collect.projects.ProjectDependencyFactory
import org.odk.collect.settings.keys.ProjectKeys
import org.odk.collect.shared.settings.InMemSettings
import org.odk.collect.testshared.BooleanChangeLock
import java.io.File

@RunWith(AndroidJUnit4::class)
class InstancesDataServiceTest {
Expand Down Expand Up @@ -129,5 +130,7 @@ class InstancesDataServiceTest {
assertThat(remainingInstances.size, equalTo(2))
assertThat(remainingInstances.any { it.status == STATUS_COMPLETE }, equalTo(true))
assertThat(remainingInstances.any { it.status == STATUS_SUBMISSION_FAILED }, equalTo(true))
assertThat(File(remainingInstances[0].instanceFilePath).parentFile?.exists(), equalTo(true))
assertThat(File(remainingInstances[1].instanceFilePath).parentFile?.exists(), equalTo(true))
}
}

0 comments on commit 6e0c1c5

Please sign in to comment.