Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pro Spring Integration - Is testing covered?

 
Taariq San
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything on testing, with Camel the testing support is great but it takes a little bit of learning,
the book Camel in Action has a chapter on testing which illustrates this well.
So I wondered if this is a consideration with Spring Integration too, or if it's so simple you don't mention it.
Or maybe it's sprinkled around the different chapters.

Thanks, looking forward to reading the book, and to trying it out.
 
Mario Gray
author
Greenhorn
Posts: 3
Spring Suse VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question!

In regards to testing your integration logic in insolation, you will find that Spring Frameworks already rich support for unit-testing is supported within SI. Thus, Junit works, and so does ezmock/mockito or whatever is your favorite test suite. Because SI is indeed Spring, you can also work with the junit4runner to test your logic in insolation. Of course because the SI are integration apps, this means having more resources available so you would want to be confident that ad-hoc stubs, or real 'integration' test resources meet your testing requirements.

So, Spring Integration is just Spring. business as usual, otherwise.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic