remove the behaviorsBrief bug

This commit is contained in:
Tienan Chen 2013-11-27 09:24:50 +08:00
parent 0ef5e36e20
commit 9cdaf9462e
1 changed files with 5 additions and 2 deletions

View File

@ -163,7 +163,7 @@ public class TestController {
return parameter;
}
@RequestMapping(value = "/testBehaviorsBrief/{runId}")
@RequestMapping(value = "/behaviorsBrief/{runId}")
@ResponseBody
public TestBehaviorsBriefModel testBehaviorBriefs(@PathVariable UUID runId) {
TestBehaviorsBriefModel ret = new TestBehaviorsBriefModel();
@ -177,13 +177,16 @@ public class TestController {
int behaviorId = behavior.getId();
Map<Integer, DetailStatusCodeResult> map = scenarioContext
.getDataStatistics().getDetailStatistics(behaviorId);
if (map == null) {
continue;
}
behaviorBriefModels.add(buildBehaviorBrief(runId, behaviorId, map));
}
ret.setBehaviorBriefModels(behaviorBriefModels);
return ret;
}
@RequestMapping(value = "/behaviorBrief/{runId}/{behaviorId}", method = RequestMethod.GET)
@RequestMapping(value = "/brief/{runId}/{behaviorId}", method = RequestMethod.GET)
@ResponseBody
public BehaviorBriefModel behaviorBrief(@PathVariable UUID runId,
@PathVariable int behaviorId) {