Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3358926
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:48:37+00:00 2026-05-18T02:48:37+00:00

I need an absolute beginners guide to using JUnit and Intellij IDEA 9.x together.

  • 0

I need an absolute beginners guide to using JUnit and Intellij IDEA 9.x together. I’m running JDK 1.6.0_22 on WinXP. I’m looking for answers to the following questions:

  1. Do I need to install JUnit or is it already integrated into Intellij? If I need to set it up how?
  2. Assuming I have the interface and impl for a class I want to test, how do I set up a JUnit project?
  3. Is there a way to autogen a test skeleton based on the class interface?

I’ve got experience with other Unit testing frameworks like, PHPUnit and Boost.Test, so I’m primarily concerned with the mechanics of getting all this set up and running in Intellij.

Edit

I’m a complete newb using Intellij.

I’m coming from a command-line background, i.e. C++ dev using vim and handwritten make files on Linux.

I’ve managed to compile and run some JUnit tests via command line ( downloaded JUnit 4.8.2 and used the -cp swith), but I’m having a heck of a time getting anything set up under Intellij. I tried looking at the online Intellij docs, but haven’t found those to be very useful. I looked in Intellij’s lib directory and it includes Junit-4.7.jar.

I really need some kind of quick start guide with step by step instructions from initial project creation through successfully running the first unit test.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:48:38+00:00Added an answer on May 18, 2026 at 2:48 am
    1. IDEA comes with JUnit support, but bear in mind that you need to invoke tests on your project – and hence your project will need to have JUnit on its classpath. Hence you don’t need to “install” JUnit, but you’ll need to make its JAR available to your project as you would with any other third party library (e.g. reference it as a Maven dependency or drop the JAR in lib/).
    2. This is where the IDEA support kicks in – I’m 99% sure you don’t need to do anything special. Since using JUnit in general simply involves annotating your test methods with @org.junit.Test, as per this quick tutorial, IDEA does not require anything further. For any class with this annotation on at least one of its methods, IDEA will give you the option to execute that class as a JUnit test case. (Note: this may only be the case for files in a directory that’s marked as “Test Sources” in the project structure, but I haven’t tested this. It’s a good idea to set your project up like this anyway.)
    3. Not by default as part of the JUnit support. There exist other plugins to do this, but in my personal opinion this is not as useful as it might sound. IDEA does have integrated code coverage (with the full edition), which (again IMHO) is a better way to ensure that your tests cases cover the full functionality of your class/interface.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

need ask you about some help. I have web app running in Net 2.0.
I am absolute beginner in Flash, and AS3. I need to make dynamically some
The commands need absolute paths in slurping. So I need programmer-quotes, because of laziness
I need absolute positioning in 4.6 application, but AbsoluteFieldManager is not supported (>=5.0), sould
Need a function that takes a character as a parameter and returns true if
Need a way to allow sorting except for last item with in a list.
Need to an expression that returns only things with an I followed by either
Need to locate the following pattern: The letter I followed by a space then
Need a function like: function isGoogleURL(url) { ... } that returns true iff URL
I need to know about Epoll On linux System. Could you recommend manual or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.