rohitghatol / spring-boot-microservices

Spring Boot Template for Micro services Architecture - Show cases how to use Zuul for API Gateway, Spring OAuth 2.0 as Auth Server, Multiple Resource (Web Services) Servers, Angular Web App, Eureka dor registration and Discover and Hystrix for circuit breaker
Apache License 2.0
1.78k stars 921 forks source link

Unit Test for Standalone webservices #9

Open evleite opened 8 years ago

evleite commented 8 years ago

Hi rohitghatol, first of all I would like to say thanks, for this awesome sample.

I am a little confuse about how to implement unit tests for User-Webservice project, for instance, so my question is: Should I run all dependencies project before start my unit test, is there another way to run junit for User-Webservice without run my entire stack?

Another question is, can you share you docker images? How did you build each one of them?

best regards and thanks again.

Eduardo.

anilallewar commented 7 years ago

@evleite , for example on how to write unit/contract tests and building/orchestrating docker container please visit the below repository. Please note that the current repository is NO longer being maintained.

https://github.com/anilallewar/microservices-basics-spring-boot

https://www.linkedin.com/pulse/how-do-we-test-microservices-anil-allewar