Skip to content

Intro to Spring Core with failing junit tests as an excercise

Notifications You must be signed in to change notification settings

fkoehne/springCoreDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This is an introductory example into Spring Core and dependency injection, including e.g. simple REST-style services. It contains a number of unit tests that, in the sense of test-driven development, currently fail. They can, however, easily be fixed by extending the Spring configuration, which we plan to do in a university workshop at Münster, Germany.

Requirements

  • Java 7+ and an understanding of the java language and basic patterns such as the singleton and the factory pattern
  • Maven 3+ or an IDE that includes appropriate support for maven builds

Rules and hints

  • You do not need to change the tests to make them pass
  • Spring Java-Config only, no XML required
  • Autowired dependencies are acceptable only in test classes
  • Prefer centralised constructor injection over setter-injection or annotation based DI configurations
  • All tests can be started (and passed) independently
  • Tests may not interfere with each other
  • Do not access the bean factory or context classes directly (i.e. using anything anlong the lines of a getBean(..)-Statement is prohibited)

About

Intro to Spring Core with failing junit tests as an excercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages