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 102839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:01:44+00:00 2026-05-11T01:01:44+00:00

Maybe it’s just me, but I cannot understand the documentation regarding Junit test integration

  • 0

Maybe it’s just me, but I cannot understand the documentation regarding Junit test integration in Intellij Idea. What I am looking for is a simple tutorial example, such as: Here is a method calculating 2+2, and here is a test class testing it to be 4. This is the checkbox you set to make it go. If there is already such a thing on the web or inside the Intellij Idea help, please refer me to it. I use Idea 7.0.4 and would like to use JUnit 3.8 or 4.*. TIA.

  • 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. 2026-05-11T01:01:45+00:00Added an answer on May 11, 2026 at 1:01 am

    Here is a small sample of how I use intellij with junit

    public class MathTest {  // Press Ctrl-Shift-F10 here to run all tests in class     @Test     public void twoPlusTwo() { // Press Ctrl-Shift-F10 here to run only twoPlusTwo test         assertThat( 2+2, is( 4 ) );     }      @Test     public void twoPlusThree() { // Press Ctrl-Shift-F10 here to run only twoPlusThree test         assertThat( 2+3, is( 5 ) );     } } 

    Once you run the test once, it will show up at the top of the screen as a run ‘configuration’. Then you can either hit the green triangle to rerun the test, or use the debug triangle to run in debug mode with breakpoints enabled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 139k
  • Answers 139k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you're running on a system that uses a palette… May 12, 2026 at 7:43 am
  • Editorial Team
    Editorial Team added an answer The simplest solution would be to create a module under… May 12, 2026 at 7:43 am
  • Editorial Team
    Editorial Team added an answer This seems to work: def attach(w,c1,c2,r1,r2): eb = gtk.EventBox() a… May 12, 2026 at 7:43 am

Related Questions

Maybe it's just me, but I cannot understand the documentation regarding Junit test integration
Maybe it's just doesn't exist, as I cannot find it. But using python's logging
maybe it's dumb but is there a difference between new Something().method(); and Something tmpSomething
...just like packages do. I use Emacs (maybe, it can offer some kind of
This question is for a web application. And maybe it's a stupid question but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.