Every time I have time to implement a unit test, I forget the order of constructor, test class pre-processing and test class post-processing, test method pre-processing, and test method post-processing, so I leave it for personal reference.
--JRE System Library [JavaSE-11]
--Constructor --Test class (@BeforeClass, @AfterClass) --Test method (@Before, @After)
When I tried it, it was a natural result, but for the time being, it seems that the number of "that ... how was the order?" At the time of unit test implementation will decrease, so I will leave it as a memo.
Recommended Posts