public TestResult checkEventPayloadIsCorrect(EventRequest request,
EventResponse response) {
tally(response);
TestResult result = new TestResult();
result.setSpecPLT("15.2.2");
result.setDescription(
"Check to make sure that the payload carries the " +
"proper state information from the event.");
String value = (String) request.getEvent().getValue();
if (!SIMPLE_VALUE_PAYLOAD.equals(value)) {
result.setReturnCode(TestResult.FAILED);
result.setResultMessage("Expected payload color to be " +
SIMPLE_VALUE_PAYLOAD + " but it was " + value);
} else {
result.setReturnCode(TestResult.PASSED);
}
return result;
}
SimplePayloadEventTest.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录