This post originated from an RSS feed registered with Agile Buzz
by Ryan Ransford.
Original Post: Executing JUnit Runners Outside Of JUnit
Feed Title: Active-Active Configuration
Feed URL: http://active-active.blogspot.com/feeds/posts/default
Feed Description: Active-Active Configuration is a blog about making my place in the enterprise world better. This blog is primarily focused on Java articles, but be prepared to be challenged by posts about dynamic languages, agile tools, and the lighter side of geek culture.
I received a comment on one of my previous posts asking how to run a test class using SpringJUnit4ClassRunner from normal application code (i.e. within a main method). I'll admit, I didn't know how to do this, but my interest was piqued, and so I ran off to an existing test class I had laying around. Within a few minutes, I had a working prototype. Here it is: