This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

How to unit-test Spring-boot projects?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings Community,

I have developed parts of a spring-boot project (first time I am working with Spring-boot). Now I would like to test them and regarding this problem I would like to develop some junit tests now I found alot of tutorials through out the www that provide me with use this and that library/framework (Mockito, spring-boot-starter-test, ...). My problem is I don't know where to start testing - to test AController I need to access BController and create an instance of CBean to create CBean I first need to create DBean which assumes I have EBean and so on. These Beans are for example a user, a project an instance of a model which the constructor I would like to test needs and so on. Now I can somehow create automatic Mockups (this framework probably does need to know more about the project than I do to do thing automatically - no idea how the theory works in practice).

Anyway - how would you start writing unit-tests for such a project - how to setup my mind to start a well ordered process?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!