public void fire(TestCaseStartedEvent event) { TestCaseResult testCase = testCaseStorage.get(); event.process(testCase); synchronized (lock) { testSuiteStorage.get(event.getSuiteUid()).getTestCases().add(testCase); } }
/** * Process TestCaseStartedEvent. New testCase will be created and added * to suite as child. * * @param event to process */ public void fire(TestCaseStartedEvent event) { //init root step in parent thread if needed stepStorage.get(); TestCaseResult testCase = testCaseStorage.get(); event.process(testCase); synchronized (TEST_SUITE_ADD_CHILD_LOCK) { testSuiteStorage.get(event.getSuiteUid()).getTestCases().add(testCase); } notifier.fire(event); }