remove the behaviorsBrief bug
This commit is contained in:
parent
0ef5e36e20
commit
9cdaf9462e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue