TG_004.TC_009 - codemetropolis/CodeMetropolis GitHub Wiki
TG_004.TC_009
Test rendering with overwrite when blocks.0.0.csv is open in Excel
Pre-requisites:
-
Java runtime 1.8
-
placingToRendering.xml exists in the rendering-1.4.0.jar's folder and is a valid inputFile (produced by placing-1.4.0.jar with the mappingToPlacing.xml as input generated by mapping-1.4.0.jar with the cdfFile generated by converter-1.4.0.jar for the input codemetropolis-toolchain-commons.graph)
-
command line opened in the folder of rendering-1.4.0.jar
Steps:
-
Run "java -jar rendering-1.4.0.jar -i placingToRendering.xml -w cm"
-
Open the generated file "cm/TEMP/blocks.0.0.csv" with Excel
-
Run again the very same command "java -jar rendering-1.4.0.jar -i placingToRendering.xml -w cm "
-
When the prompt asks "Rendering: Another world with the same name might exist or being built right now. Do you want to overwrite? [Y/N]" hit "Y"
Expected result:
The tool exits normally, warning the user that the "blocks.0.0.csv" file in the target "cm" directory cannot be deleted and does not regenerate the world.