From 3b57cc690f829c1c531ee1a72f94b259a6c5db78 Mon Sep 17 00:00:00 2001
From: fanfuxiaoran <495538672@qq.com>
Date: Thu, 17 Apr 2014 11:38:27 +0800
Subject: [PATCH] add behavior to behavior
---
Bench4Q-Master/pluginUI/ui.xml | 4 +-
.../bench4q/master/api/PluginController.java | 4 +-
.../master/domain/entity/TestPlan.java | 2 +-
.../domain/entity/plugin/BehaviorInfo.java | 10 ++
.../domain/factory/PluginEntityFactory.java | 88 ++++++----
.../domain/repository/PluginRepository.java | 11 ++
.../java/TestHelper/Test_PluginHelper.java | 24 ++-
.../test/controller/PluginControllerTest.java | 90 +++-------
.../factory/Test_PluginDomainFactory.java | 2 +-
.../factory/Test_PluginEntityFactory.java | 11 +-
.../repository/Test_PluginRepository.java | 6 +-
.../test/service/Test_PluginService.java | 162 ++++++++----------
.../test/resources/service-test-context.xml | 2 +-
.../master/plugin/BehaviorInfoModel.java | 13 +-
14 files changed, 219 insertions(+), 210 deletions(-)
diff --git a/Bench4Q-Master/pluginUI/ui.xml b/Bench4Q-Master/pluginUI/ui.xml
index fb73c343..f7c8d87a 100644
--- a/Bench4Q-Master/pluginUI/ui.xml
+++ b/Bench4Q-Master/pluginUI/ui.xml
@@ -36,7 +36,7 @@
-
+
-
+
diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/api/PluginController.java b/Bench4Q-Master/src/main/java/org/bench4q/master/api/PluginController.java
index 79b3c6a8..bb8d75d1 100644
--- a/Bench4Q-Master/src/main/java/org/bench4q/master/api/PluginController.java
+++ b/Bench4Q-Master/src/main/java/org/bench4q/master/api/PluginController.java
@@ -31,7 +31,7 @@ public class PluginController extends BaseController {
this.pluginService = pluginService;
}
- @RequestMapping(value = "loadPluginUI", method = { RequestMethod.GET,
+ @RequestMapping(value = "/loadPluginUI", method = { RequestMethod.GET,
RequestMethod.POST })
@ResponseBody
public PluginResponseModel loadPluginUIModels() throws Bench4QException {
@@ -73,7 +73,7 @@ public class PluginController extends BaseController {
return pluginResponseModel;
}
- @RequestMapping(value = "loadBehaviors/{pluginName}", method = {
+ @RequestMapping(value = "/loadBehaviors/{pluginName}", method = {
RequestMethod.GET, RequestMethod.POST })
@ResponseBody
public PluginResponseModel getMethods(
diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java
index f2ef3353..e7d1b0b9 100644
--- a/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java
+++ b/Bench4Q-Master/src/main/java/org/bench4q/master/domain/entity/TestPlan.java
@@ -219,7 +219,7 @@ public class TestPlan implements IAggregate {
}
public List