add TestPlanEngine to TestPlan as a observer
This commit is contained in:
parent
0d70c3e4ad
commit
65aec6550e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue