├── .travis.yml ├── README.md ├── pom.xml └── src ├── .classpath ├── .project ├── main └── java │ └── com │ └── blog │ └── samples │ ├── Application.java │ ├── controller │ └── AccountController.java │ ├── exception │ ├── AccountNotFoundException.java │ ├── InvalidAccountRequestException.java │ └── components │ │ └── ControllerExceptionHandler.java │ ├── model │ ├── Account.java │ └── EnumAccountType.java │ └── service │ └── AccountService.java └── test └── java └── com └── blog └── samples └── controller └── AccountControllerTest.java /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/README.md -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/pom.xml -------------------------------------------------------------------------------- /src/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/.classpath -------------------------------------------------------------------------------- /src/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/.project -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/Application.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/controller/AccountController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/controller/AccountController.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/exception/AccountNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/exception/AccountNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/exception/InvalidAccountRequestException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/exception/InvalidAccountRequestException.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/exception/components/ControllerExceptionHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/exception/components/ControllerExceptionHandler.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/model/Account.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/model/Account.java -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/model/EnumAccountType.java: -------------------------------------------------------------------------------- 1 | package com.blog.samples.model; 2 | 3 | public enum EnumAccountType { 4 | 5 | CURRENT, SAVINGS 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/blog/samples/service/AccountService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/main/java/com/blog/samples/service/AccountService.java -------------------------------------------------------------------------------- /src/test/java/com/blog/samples/controller/AccountControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/briansjavablog/rest-controller-testing-mock-mvc/HEAD/src/test/java/com/blog/samples/controller/AccountControllerTest.java --------------------------------------------------------------------------------