I am new to Java world and working on a API Testframework using RestAssured,Cucumber and Java. I came from .Net world. Basically I created a Maven project in IntelliJ. This project has only QA library code like models, context classes, and classes that call RestAssured GET,POST,PUT and DELETE methods. This class has no tests but only plumbing/infrastructure code to call HTTP endpoints. Let's call this as QA Library. I created a JAR file using IntelliJ without a Mainclass.
Now I have created another Maven project in IntelliJ. This project has no code in Src/Main. All the code is in Src/Test. It contains cucumber feature files, StepDefinitions, Hooks and other model classes. Now I want to call QA Library project in this project so I don't have deal with all plumbing code any more. Let's call this CucucmberSample project I placed QA Library jar file in the "lib" folder of root of CucumberSample project . In IntelliJ, I right clicked on lib folder, and selected "Add as Library". This was fine. The build was successfull. However when I try to run the the tests from my Cucumber runner class, I got this error enter image description here
In Visual Studio, you create a class library project. On build it generates a .dll file. You create another test project and you can add the .dll file as external reference. How do I this here in IntelliJ