use of org.apache.servicecomb.demo.ignore.InputModelForTestIgnore in project java-chassis by ServiceComb.
the class CodeFirstRestTemplate method testModelFieldIgnore.
private void testModelFieldIgnore(RestTemplate template, String cseUrlPrefix) {
InputModelForTestIgnore input = new InputModelForTestIgnore("input_id_rest", "input_id_content", new Person("inputSomeone"), new JsonObject("{\"InputJsonKey\" : \"InputJsonValue\"}"), () -> {
});
OutputModelForTestIgnore output = template.postForObject(cseUrlPrefix + "ignore", input, OutputModelForTestIgnore.class);
TestMgr.check(null, output.getInputId());
TestMgr.check(input.getContent(), output.getContent());
TestMgr.check(null, output.getOutputId());
TestMgr.check(null, output.getInputIgnoreInterface());
TestMgr.check(null, output.getInputJsonObject());
TestMgr.check(null, output.getInputObject());
TestMgr.check(null, output.getOutputIgnoreInterface());
TestMgr.check(null, output.getOutputJsonObject());
TestMgr.check(null, output.getOutputObject());
}
use of org.apache.servicecomb.demo.ignore.InputModelForTestIgnore in project incubator-servicecomb-java-chassis by apache.
the class CodeFirstRestTemplate method testModelFieldIgnore.
protected void testModelFieldIgnore(RestTemplate template, String cseUrlPrefix) {
InputModelForTestIgnore input = new InputModelForTestIgnore("input_id_rest", "input_id_content", new Person("inputSomeone"), new JsonObject("{\"InputJsonKey\" : \"InputJsonValue\"}"), () -> {
});
OutputModelForTestIgnore output = template.postForObject(cseUrlPrefix + "ignore", input, OutputModelForTestIgnore.class);
TestMgr.check(null, output.getInputId());
TestMgr.check(input.getContent(), output.getContent());
TestMgr.check(null, output.getOutputId());
TestMgr.check(null, output.getInputIgnoreInterface());
TestMgr.check(null, output.getInputJsonObject());
TestMgr.check(null, output.getInputObject());
TestMgr.check(null, output.getOutputIgnoreInterface());
TestMgr.check(null, output.getOutputJsonObject());
TestMgr.check(null, output.getOutputObject());
}
Aggregations