This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Running adhoc tests and classes in IDEA
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
I seem to learn something new IDEA every day. If you're editing a JUnit test case, individual test method or Java class with a main method and want to quickly execute it, you can right click and choose Run from the popup menu. IDEA will then execute your chosen item and place it temporarily in the list of executable targets at the top of the frame. You'll notice that the icon is greyed out. You can then re-run this by clicking the run button or choose to save the configuration permanently. Nice, particularly for running a single test case or method.