SimplePayloadEventTest.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:portals-pluto 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号