add TestPlanEngine to TestPlan as a observer

This commit is contained in:
hmm 2014-09-25 14:30:37 +08:00
parent 0d70c3e4ad
commit 65aec6550e
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ public class TestPlanEngine implements TaskCompleteCallback,
throws IllegalParameterException { throws IllegalParameterException {
TestPlan testPlan = this.getTestPlanFactory().createATestPlanWithoutId( TestPlan testPlan = this.getTestPlanFactory().createATestPlanWithoutId(
testPlanBusinessModel, user, testPlanRunId); testPlanBusinessModel, user, testPlanRunId);
testPlan.addObserver(this);
Logger.getLogger(TestPlanService.class).info( Logger.getLogger(TestPlanService.class).info(
"test plan name:" + testPlan.getName()); "test plan name:" + testPlan.getName());
return this.getTestPlanRepository().attach(testPlan); return this.getTestPlanRepository().attach(testPlan);