Commit 4e286446 by Gunnar Billung-Meyer

RedfishDocumentor.jar now generates test stubs

parent 51745ec5
......@@ -54,6 +54,10 @@ This optional parameter points to the base folder where the java files will be g
This optional flag indicates, if the adapter implementation code will be generated.
#### -t, --generatetest
This optional parameter points to the base folder where the java test files will be generated. This folder will be cleared automatically before new code is generated. If not specified, no test code is generated.
#### -m, --mapping
This optional parameter points to a file, which specifies the mapping between redfish resource classes and "real" modelcalsses for code generation. It has to be a valid JSON file. An example can be seen in the **config** folder.
......
......@@ -8,6 +8,7 @@ SET CSDL_DIR=%PROJECT_DIR%\csdlSchemas
SET JSON_DIR=%PROJECT_DIR%\schemas
SET DOC_DIR=%PROJECT_DIR%\docs
SET CODE_DIR=%PROJECT_DIR%\code
SET TEST_DIR=%CODE_DIR%\test
SET CONF_DIR=%PROJECT_DIR%\config
SET FILTER_FILE=%CONF_DIR%\filter.json
SET URIFILTER_FILE=%CONF_DIR%\uri.json
......@@ -16,7 +17,7 @@ SET LITERALS_FILE=%CONF_DIR%\literals.json
SET MAPPING_FILE=%CONF_DIR%\class-mapping.json
SET OEM_PREFIXES=EID_47597_RECSBox
"%JAVA_EXE%" -jar "%APPLICATION%" --json "%JSON_DIR%" --csdl "%CSDL_DIR%" --doc "%DOC_DIR%" --oem "%OEM_PREFIXES%" --filter "%FILTER_FILE%" --urifilter "%URIFILTER_FILE%" --operations "%OPERATIONS_FILE%" --literals "%LITERALS_FILE%" --generatecode "%CODE_DIR%" --generateimpl --mapping "%MAPPING_FILE%" 2>&1
"%JAVA_EXE%" -jar "%APPLICATION%" --json "%JSON_DIR%" --csdl "%CSDL_DIR%" --doc "%DOC_DIR%" --oem "%OEM_PREFIXES%" --filter "%FILTER_FILE%" --urifilter "%URIFILTER_FILE%" --operations "%OPERATIONS_FILE%" --literals "%LITERALS_FILE%" --generatecode "%CODE_DIR%" --generateimpl --generatetest "%TEST_DIR%" --mapping "%MAPPING_FILE%" 2>&1
if errorlevel 1 (
echo Generation of the documentation failed!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment