hastebrot
01/27/2017, 2:16 PMedvin
01/27/2017, 2:16 PMhastebrot
01/27/2017, 2:27 PMI am testing a View() and not an App(). If I use MyMainApp().start(stage) and then MyMainApp().stop(), I get the required behaviour.But how to do this for Views and Fragments. so, some software test people wrote about various properties/qualities of tests. kent beck for instance says, among other points, tests need to be isolated. a similar quality is, that they should be repeatable.
hastebrot
01/27/2017, 2:31 PMedvin
01/27/2017, 2:33 PMfind<ViewType>(Scope())
and for Fragment you'd always get a new instance with find<FragmentType>()
.hastebrot
01/27/2017, 2:33 PM@Before
and @After
(I call them test lifecycle methods/annotations) to prepare and clean the tests, i.e. to have this isolated property.edvin
01/27/2017, 2:35 PM@Before
and then find
all resources for the current test in that scope perhaps?hastebrot
01/27/2017, 2:35 PMfind<...>(...)
(when we think about TornadoFX)edvin
01/27/2017, 2:35 PMedvin
01/27/2017, 2:36 PMfind
?hastebrot
01/27/2017, 2:38 PMViewTestBase
class.hastebrot
01/27/2017, 2:39 PMhastebrot
01/27/2017, 2:42 PMhastebrot
01/27/2017, 2:43 PMScope
edvin
01/27/2017, 2:44 PMhastebrot
01/27/2017, 2:44 PMthomasnield
01/27/2017, 3:18 PMthomasnield
01/27/2017, 3:20 PMhastebrot
01/27/2017, 3:20 PMthomasnield
01/27/2017, 3:20 PMhastebrot
01/27/2017, 3:20 PMpackage
"block" is indentedthomasnield
01/27/2017, 3:20 PMhastebrot
01/27/2017, 3:21 PMthomasnield
01/27/2017, 3:21 PMthomasnield
01/27/2017, 3:21 PMthomasnield
01/27/2017, 3:22 PMthomasnield
01/27/2017, 3:22 PMedvin
01/27/2017, 3:22 PMedvin
01/27/2017, 3:23 PM