Results 1 to 2 of 2

Thread: Spring JDBC Unit tests

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Default Spring JDBC Unit tests

    When I looked at the Spring source code I realized that all unit tests make use of mock controls only. Does Spring test its code, for example JDBC classes, with real database? If it does, is it made available to the community?

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,795

    Default

    Hello

    Does Spring test its code, for example JDBC classes, with real database?
    You can create a DataSource based in a In-Memory DataBase for testing purposes, keeping the other like Mysql for production

    If it does, is it made available to the community?
    I suggest you read the Spring Documentation, research in forums and read some books, it is covered many times
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •