Skip to content

Commit

Permalink
Update the state machine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awush-stripe committed Mar 11, 2022
1 parent 04c4e93 commit a1b96d2
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 162 deletions.
2 changes: 1 addition & 1 deletion stripecardscan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
testImplementation "junit:junit:$junitVersion"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion"
testImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
testImplementation "org.mockito:mockito-inline:$mockitoCoreVersion"
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation "com.google.truth:truth:$truthVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.stripe.android.stripecardscan.framework

import android.util.Log
import com.stripe.android.camera.framework.time.Clock
import com.stripe.android.camera.framework.time.ClockMark

Expand All @@ -10,11 +9,4 @@ internal abstract class MachineState {
* Keep track of when this state was reached
*/
protected open val reachedStateAt: ClockMark = Clock.markNow()

override fun toString(): String =
"${this::class.java.simpleName}(reachedStateAt=$reachedStateAt)"

init {
Log.d(LOG_TAG, "${this::class.java.simpleName} machine state reached")
}
}
Loading

0 comments on commit a1b96d2

Please sign in to comment.