Implement autogeneation of moco json 83/19083/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Mon, 16 Oct 2017 14:01:36 +0000 (14:01 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 17 Oct 2017 05:53:43 +0000 (05:53 +0000)
commitdba77b07f034f234dba8dfe58885135b7cbbdc95
tree57329d3f16ca991196a17b0de764dfbef1c975dc
parent878e79ea47fe7500982c9703bcd253aa5a512d69
Implement autogeneation of moco json

Autogenerate mocked json files for moco-master from http request
respose.

Change-Id: I731682c41b623713a6b4de7ea74b14ab83f5d17e
Issue-ID: CLI-55
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
12 files changed:
framework/src/main/java/org/onap/cli/fw/OnapCommand.java
framework/src/main/java/org/onap/cli/fw/cmd/OnapHttpCommand.java
framework/src/main/java/org/onap/cli/fw/conf/Constants.java
framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java
framework/src/main/java/org/onap/cli/fw/error/OnapCommandFailedMocoGenerate.java [new file with mode: 0644]
framework/src/main/java/org/onap/cli/fw/http/mock/MockJsonGenerator.java [new file with mode: 0644]
framework/src/main/java/org/onap/cli/fw/http/mock/MockObject.java [new file with mode: 0644]
framework/src/main/java/org/onap/cli/fw/http/mock/MockRequest.java [new file with mode: 0644]
framework/src/main/java/org/onap/cli/fw/http/mock/MockResponse.java [new file with mode: 0644]
framework/src/main/resources/onap.properties
framework/src/test/java/org/onap/cli/fw/http/mock/MockJsonGeneratorTest.java [new file with mode: 0644]
plugins/sdc/src/test/resources/onap-cli-sample/license-model-show-schema-1.1-moco.json