In the book Growing Object-Oriented Software, Guided by Tests, authors Steve Freeman and Nat Pryce suggest a neat pattern for cleanly creating test data for unit tests. They suggest using the builder pattern to build test objects which are as simple or as complicated as necessary for the test. The builder can set default data in fields meaning that only data significant to the result of the test needs to be set.
Stuart 'Stevie' Leitch's blog on Software Development, Java Technologies, Security and Testing
Tagsapm appdynamics archetype blame bug ci container DBUnit deploy docker Dockerfile Docker Hub github hibernate image integration test jetty junit maven microservice mistake MockMVC MySQL netbeans repository REST RestTemplateBuilder scm Security SOAP software development spanners spring Spring-WS spring boot spring mvc spring security tapestry test testing tomcat unit test VM windows WithMockUser