InfoQ

Presentation

System Integration Testing Using Spring

Presented by Rod Johnson on Jul 30, 2007

Community
Java
Topics
Delivering Quality ,
Debugging
Tags
TDD ,
Spring ,
No Fluff Just Stuff Symposiums ,
Testing
Summary
When it comes to system integration testing Spring adds real value. In this session, Rod Johnson (Spring creator) discusses: integration testing and the support that Spring provides for it, issues around testing the persistence layer, testing web applications.

Bio
Rod is the father of Spring. The Spring Framework open source project began in February 2003, based on the Interface21 framework published with Rod's best-selling Expert One-on-One J2EE Design and Development. Rod is one of the world's leading authorities on Java and J2EE development.

About the conference
The Spring Experience conference is hosted by Interface21 and NoFluffJustStuff Java Symposiums (NFJS) and is dedicated to the Spring Framework community. TSE is a limited attendance, technically focused event targeted at Technical Project Managers, Architects, and Developers.

14 comments

Watch Thread Reply

Slides to download by Adelino Rodrigues Posted Jul 31, 2007 7:20 AM
Re: Slides to download by Marshal Wu Posted Jul 31, 2007 7:54 AM
Re: Slides to download by super zhu Posted Aug 6, 2007 12:52 AM
Re: Slides to download by Patricia Guimaraes Posted Aug 13, 2007 2:00 PM
Re: Slides to download by Prashant Bhate Posted Jan 9, 2008 4:29 AM
Re: Slides to download by Prashant Bhate Posted Jan 9, 2008 5:15 AM
Re: Slides to download by Jose Pena Posted Jan 26, 2009 4:23 PM
I really enjoyed the first 40 minutes by Laurent Ploix Posted Aug 1, 2007 3:06 AM
Wrong tool for UI unit tests by Marc Guillemot Posted Aug 1, 2007 3:55 AM
Re: Wrong tool for UI unit tests by anjan bacchu Posted Aug 3, 2007 4:48 PM
Re: Wrong tool for UI unit tests by Marc Guillemot Posted Aug 7, 2007 4:57 AM
Re: Wrong tool for UI unit tests by Alexandre Poitras Posted Aug 7, 2007 6:16 AM
Excellent presentation! by Igor Kolomiets Posted Aug 3, 2007 3:42 PM
Rollback Transaction by Rodolfo Rothganger Posted Aug 6, 2007 5:02 PM
  1. Back to top

    Slides to download

    Jul 31, 2007 7:20 AM by Adelino Rodrigues

    Would it be possible to have a URL with the slides to download?

  2. Back to top

    Re: Slides to download

    Jul 31, 2007 7:54 AM by Marshal Wu

    yes

  3. Back to top

    I really enjoyed the first 40 minutes

    Aug 1, 2007 3:06 AM by Laurent Ploix

    ...because you basically cover the basics of a good testing approach, with or without java, with or without Spring. Even people who don't use Java can listen to this conference - at least the first half -.

  4. Back to top

    Wrong tool for UI unit tests

    Aug 1, 2007 3:55 AM by Marc Guillemot

    Rod,
    I fear that your knowledge of UI unit test tools is outdated: HttpUnit is a dead project (or at least deeply asleep). This is the reason why we've moved to HtmlUnit for over 3 years in Canoo WebTest.
    HtmlUnit is also the default underlying layer used by jWebUnit (that you mentionned).
    Your assertion concerning limited js support is not fully correct either.

    Nevertheless all these tools are too low level and for instance junit like reports are too limited for UI tests. Have a look at WebTest tests written as unit tests in Groovy (just like what Grails can generate). This allows you to use the higher level API of WebTest and have reach reports just from your unit tests. This makes a real difference what concerns the maintainability.

  5. Back to top

    Excellent presentation!

    Aug 3, 2007 3:42 PM by Igor Kolomiets

    All these years I was blaming myself for being lazy and still using real db with transaction-wrapped test methods (with auto-rollback at the end) for testing DAO layer. I thought that best practices require using in-memory db (for speed) and using full-blown db data-fixture setup/cleanup steps before and after running each step (approach heavily advocated by ROR for example). The only reason I didn't go that route is the lack of immediate benefits. Now it's such a relief to hear from respected authority like Rod that it's a "good thing" :)

  6. Back to top

    Re: Wrong tool for UI unit tests

    Aug 3, 2007 4:48 PM by anjan bacchu

    Hi Marc,

    Thanks for updating the http/html unit testing scenario.

    Can you update with some links so that others can get a quick overview ?

    Thanks ,

    BR,
    ~A

  7. Back to top

    Re: Slides to download

    Aug 6, 2007 12:52 AM by super zhu

    How to download?

  8. Back to top

    Rollback Transaction

    Aug 6, 2007 5:02 PM by Rodolfo Rothganger

    Very usefull presentation!

    One small point: a complete test (not a Unit Test...) should check for failures during the transaction commit phase, including problems on a two phase commit scenarios.


    Regards,

    Rudolf

  9. Back to top

    Re: Wrong tool for UI unit tests

    Aug 7, 2007 4:57 AM by Marc Guillemot

    Ups, sorry:

    HtmlUnit: htmlunit.sourceforge.net
    WebTest: webtest.canoo.com
    WebTest from Groovy: groovy.codehaus.org/Testing+Web+Applications
    webtest.canoo.com/webtest/manual/groovyTesting....
    Screencast of Grails' WebTest (maybe already outdated, I don't know)
    grails.org/Grails+Screencasts

  10. Back to top

    Re: Wrong tool for UI unit tests

    Aug 7, 2007 6:16 AM by Alexandre Poitras

    Is it possible to use those UI unit tests tools in a EJB 2.x application ? Or I need to mock every ejbs?

  11. Back to top

    Re: Slides to download

    Aug 13, 2007 2:00 PM by Patricia Guimaraes

    I listened to this talk and thought it was excellent! I would very much like to get a copy of the slides. Could you provide instructions on how to do that? Previous postings state that it is possible, but don't say how.

    Thanks a lot,

    Pat

  12. Back to top

    Re: Slides to download

    Jan 9, 2008 4:29 AM by Prashant Bhate

    Hi,

    First of all , Thanks a lot Rod, for these wonderful slides :))

    Thanks to company firewall policies, Not all of us in the team have privileges to view *.swf content.

    So I used this Javascript snippet to view all Slides at once,


    <script>
    var slides=new Array('/resource/presentations/system-integration-testing-with-spring/en/slides/slide0.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide1.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide2.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide3.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide4.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide5.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide6.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide7.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide8.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide9.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide10.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide11.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide12.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide13.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide14.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide15.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide16.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide17.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide18.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide19.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide20.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide21.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide22.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide23.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide24.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide25.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide26.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide27.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide28.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide29.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide30.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide31.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide32.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide33.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide34.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide35.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide36.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide37.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide38.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide39.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide40.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide41.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide42.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide43.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide44.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide45.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide46.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide47.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide48.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide49.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide50.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide51.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide52.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide53.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide54.swf');
    for(slide in slides){
    //Browser can't Handle Too-many windows ;)
    if(slide%20 ==0 && !window.confirm("There are Still "+(slides.length-slide)+" slides, Start Opening slide#"+slide+"?")){
    break;
    }
    window.open("http://www.infoq.com"+slides[slide]);
    }
    </script>


    [and then , If Using IE,go to "Temp Internet Folder" (or appropriate cache/store folder of browser) and copy swf files from there to Local Disk :))
    ]

    Then shared these slides with my team here in my office, and Even they are very thankful to you Rod :)

  13. Back to top

    Re: Slides to download

    Jan 9, 2008 5:15 AM by Prashant Bhate

    Hi,

    First Of All, Thanks a lot Rod for the wonderful slides & Presentation :)

    Only Problems with the slides is the format i.e. *.swf. Not everyone has the privileges in My team to view flash content. [Thanks to company's Firewall policies].

    So I have Used this scriptlet to view all slides at once, and then Copied cached slides [From "Temp Internet Folder" if using IE or any other browsers' store floder] to Disk. Then I shared it with my team. Now they can watch it offline and Even my colleagues and team members are very greatful to you ;)


    --script-tag--
    var slides=new Array('/resource/presentations/system-integration-testing-with-spring/en/slides/slide0.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide1.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide2.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide3.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide4.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide5.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide6.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide7.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide8.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide9.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide10.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide11.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide12.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide13.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide14.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide15.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide16.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide17.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide18.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide19.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide20.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide21.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide22.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide23.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide24.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide25.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide26.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide27.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide28.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide29.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide30.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide31.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide32.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide33.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide34.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide35.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide36.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide37.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide38.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide39.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide40.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide41.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide42.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide43.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide44.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide45.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide46.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide47.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide48.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide49.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide50.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide51.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide52.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide53.swf','/resource/presentations/system-integration-testing-with-spring/en/slides/slide54.swf');
    for(slide in slides){
    //Browser can't handle too many open windows ;)
    if(slide%20 ==0 && !window.confirm("There are Still "+(slides.length-slide)+" slides, Start Opening slide#"+slide+"?")){
    break;
    }
    window.open("http://www.infoq.com"+slides[slide]);
    }
    --end-of-script-tag--

  14. Back to top

    Re: Slides to download

    Jan 26, 2009 4:23 PM by Jose Pena

    Where are the slides? I would have it, thanks

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.