You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized today there's really not a story about testing in the context of TornadoFx contained in the guide.
For example, I wanted to start an app by building kotlin-test specs to call and integrate domain objects against a public Restful API using the TornadoFx Rest capability. But then I discover that Rest is a TornadoFx controller and there's no obvious way to instantiate one for the purposes of testing (by inject isn't really something you can do in a test class (or is it?)).
I'm sure there are many other situations where a discussion of how to do testing would be beneficial to many users.
The text was updated successfully, but these errors were encountered:
This would be very helpful. You can get a Component instance by calling FX.find<ComponentType>() at any time, it has the same effect as injection. In a pinch you can even instantiate it manually and call init(), but that's not going to work if you're utilizing scopes.
I realized today there's really not a story about testing in the context of TornadoFx contained in the guide.
For example, I wanted to start an app by building kotlin-test specs to call and integrate domain objects against a public Restful API using the TornadoFx
Rest
capability. But then I discover thatRest
is a TornadoFx controller and there's no obvious way to instantiate one for the purposes of testing (by inject
isn't really something you can do in a test class (or is it?)).I'm sure there are many other situations where a discussion of how to do testing would be beneficial to many users.
The text was updated successfully, but these errors were encountered: