Skip to content
Snippets Groups Projects
Unverified Commit 7245694e authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Be a good unit test and null and reset static variables after using them. (#3306)

parent 02f987f2
No related branches found
No related tags found
No related merge requests found
package de.rki.coronawarnapp.ui.presencetracing.organizer.create
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.bugreporting.censors.presencetracing.TraceLocationCensor
import de.rki.coronawarnapp.presencetracing.checkins.qrcode.TraceLocation
import de.rki.coronawarnapp.presencetracing.locations.TraceLocationCreator
import de.rki.coronawarnapp.server.protocols.internal.pt.TraceLocationOuterClass
......@@ -15,6 +16,7 @@ import okio.ByteString.Companion.encode
import org.joda.time.DateTime
import org.joda.time.Duration
import org.joda.time.Instant
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
......@@ -35,6 +37,11 @@ internal class TraceLocationCreateViewModelTest : BaseTest() {
MockKAnnotations.init(this)
}
@AfterEach
fun teardown() {
TraceLocationCensor.dataToCensor = null
}
@ParameterizedTest
@MethodSource("provideArguments")
fun `send should not be enabled for empty form`(category: TraceLocationCategory) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment