Develop a Spring Service using a TDD approach to consume the value from from the web service: DailyDilbert published in the following endpoint: http://www.gcomputer.net/webservices/dilbert.asmx
Build System: Maven | Gradle
- Application.java (main class to run the application)
- ComputerClient.java (create a web service client extending the WebServiceGatewaySupport class and code the operations)
- ComputerService.java (class to perform service tasks)
- ComputerConfiguration.java (configuring web service components)
- application.yml (properties)
- ComputerServiceTest.java (class to test the application)
The vast majority of Maven-built projects can be built with the following command:
mvn clean install
This command tells Maven to build all the modules, and to install it in the local repository. The local repository is created in your home directory (or alternative location that you created it), and is the location that all downloaded binaries and the projects you built are stored.
To run unit test via Maven, issue this command :
mvn test
This will run the entire unit tests in your project.