Jonathan Lennox
05/31/2022, 7:07 PMEmil Kantis
05/31/2022, 7:27 PMJonathan Lennox
05/31/2022, 7:28 PMEmil Kantis
05/31/2022, 7:41 PMclearAllMocks()
. That might free up a lot of old recorded calls etcJonathan Lennox
05/31/2022, 7:41 PMEmil Kantis
05/31/2022, 7:42 PMbeforeEach { mockExecutor = spy<ScheduledExecutorService>() }
afterEach { clearAllMocks() }
in the beginning of your specJonathan Lennox
05/31/2022, 7:43 PMEmil Kantis
05/31/2022, 7:45 PMJonathan Lennox
05/31/2022, 7:59 PMShouldSpec
test? Is there a way to clear it when the whole test is done?Emil Kantis
05/31/2022, 8:01 PMafterSpec { clearAllMocks() // or clearMocks(mockExecutor, [... other mocks]) }
Jonathan Lennox
05/31/2022, 8:02 PMchristophsturm
05/31/2022, 8:03 PMJonathan Lennox
05/31/2022, 8:08 PMafterSpec
solution work if I'm doing IsolationMode.InstancePerLeaf
? It says it re-instantiates the Spec each time so that's unclear to me.christophsturm
05/31/2022, 8:09 PMEmil Kantis
05/31/2022, 8:16 PMJonathan Lennox
05/31/2022, 8:29 PMchristophsturm
05/31/2022, 8:35 PMEmil Kantis
05/31/2022, 8:38 PMchristophsturm
05/31/2022, 8:42 PMEmil Kantis
05/31/2022, 8:42 PMchristophsturm
05/31/2022, 8:44 PMJonathan Lennox
05/31/2022, 8:46 PMsam
06/01/2022, 2:05 AMchristophsturm
06/01/2022, 6:55 AMthanksforallthefish
06/02/2022, 9:05 AM