Cornutum / tcases

A model-based test case generator
MIT License
218 stars 54 forks source link

Optional import should be there else creating issue in generated Junit #297

Closed pankajgupta-web closed 8 months ago

pankajgupta-web commented 8 months ago

https://github.com/Cornutum/tcases/blob/b6c6f4fdb9619ad265879cffe719a9542343b422/tcases-rest-assured/src/main/java/org/cornutum/tcases/openapi/restassured/RestAssuredTestCaseWriter.java#L60

targetWriter.println( "import java.util.Optional;");

should be there before

targetWriter.println( "import static java.util.stream.Collectors.*;");

kerrykimbrough commented 8 months ago

I'm not sure I understand the problem. Can you explain what is going wrong?

pankajgupta-web commented 8 months ago

Sorry, my bad. It was due to enhancement at my side in local in which optional was being used in generated junit . So it was giving issue when optional import was not there .