Search in sources :

Example 1 with OutputModelForTestIgnore

use of org.apache.servicecomb.demo.ignore.OutputModelForTestIgnore 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());
}
Also used : InputModelForTestIgnore(org.apache.servicecomb.demo.ignore.InputModelForTestIgnore) OutputModelForTestIgnore(org.apache.servicecomb.demo.ignore.OutputModelForTestIgnore) JsonObject(io.vertx.core.json.JsonObject) Person(org.apache.servicecomb.demo.compute.Person)

Aggregations

JsonObject (io.vertx.core.json.JsonObject)1 Person (org.apache.servicecomb.demo.compute.Person)1 InputModelForTestIgnore (org.apache.servicecomb.demo.ignore.InputModelForTestIgnore)1 OutputModelForTestIgnore (org.apache.servicecomb.demo.ignore.OutputModelForTestIgnore)1