[BUG] The script new.sh generates a wrong package for test classes.
Created by: marcoaltieri
Description
The script new.sh creates test classes with a wrong package if the generator name contains dashes.
openapi-generator version
Since the new.sh was introduced.
Command line used for generation
./new.sh -n java-something -s -t
Steps to reproduce
Execute:
./new.sh -n java-something -s -t
The script generates the class:
modules/openapi-generator/src/test/java/org/openapitools/codegen/java-something/JavaSomethingServerCodegenModelTest.java
that has an invalid character in its package.
Suggest a fix
Ideally, the script should generate the classes in the package
modules/openapi-generator/src/test/java/org/openapitools/codegen/java/something
or, at least, it should state that, with the current implementation, a dash in the generator name is not supported by this script.