We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
As in your readme file, I would like to test the transitions:
assertThat(transition).isEqualTo( StateMachine.Transition.Valid(Solid, OnMelted, Liquid, LogMelted) )
But, the "Valid" data class has an internal constructor so I can't access it in my tests.
internal
What should I do ? Thanks.
The text was updated successfully, but these errors were encountered:
I have the same problem. Would be great to be able to write unit tests.
Sorry, something went wrong.
Any update on the lib to make StateMachine.Transition.Valid have a public constructor? Can't make proper tests following the readme.
StateMachine.Transition.Valid
I believe you can do this
assertThat(transition).isInstanceOf(StateMachine.Transition.Valid::class.java) assertThat(invalidTransition).isInstanceOf(StateMachine.Transition.Invalid::class.java)
and assert fromState and event from transition, although you still don't have access to toState and sideEffect
fromState
event
transition
toState
sideEffect
No branches or pull requests
Hi,
As in your readme file, I would like to test the transitions:
But, the "Valid" data class has an
internal
constructor so I can't access it in my tests.What should I do ? Thanks.
The text was updated successfully, but these errors were encountered: