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

  • Home
  • SEARCH
  • 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 8026857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:37:20+00:00 2026-06-04T23:37:20+00:00

Maybe my question is a newbie one, but I can not really understand the

  • 0

Maybe my question is a newbie one, but I can not really understand the circumstances under which I would use junit?

Whether I write simple applications or larger ones I test them with the System.out statements and it seams quite easy to me.

Why create test-classes with JUnit, unnecessary folders in the project if we still have to call the same methods, check what they return and we then have an overhead of annotating everything?

Why not write a class and test it at once with System.out but not create Test-classes?

PS. I have never worked on large projects I am just learning.

So what is the purpose?

  • 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-06-04T23:37:22+00:00Added an answer on June 4, 2026 at 11:37 pm

    That’s not testing, that’s “looking manually at output” (known in the biz as LMAO). More formally it’s known as “looking manually for abnormal output” (LMFAO). (See note below)

    Any time you change code, you must run the app and LMFAO for all code affected by those changes. Even in small projects, this is problematic and error-prone.

    Now scale up to 50k, 250k, 1m LOC or more, and LMFAO any time you make a code change. Not only is it unpleasant, it’s impossible: you’ve scaled up the combinations of inputs, outputs, flags, conditions, and it’s difficult to exercise all possible branches.

    Worse, LMFAO might mean visiting pages upon pages of web app, running reports, poring over millions of log lines across dozens of files and machines, reading generated and delivered emails, checking text messages, checking the path of a robot, filling a bottle of soda, aggregating data from a hundred web services, checking the audit trail of a financial transaction… you get the idea. “Output” doesn’t mean a few lines of text, “output” means aggregate system behavior.

    Lastly, unit and behavior tests define system behavior. Tests can be run by a continuous integration server and checked for correctness. Sure, so can System.outs, but the CI server isn’t going to know if one of them is wrong–and if it does, they’re unit tests, and you might as well use a framework.

    No matter how good we think we are, humans aren’t good unit test frameworks or CI servers.


    Note: LMAO is testing, but in a very limited sense. It isn’t repeatable in any meaningful way across an entire project or as part of a process. It’s akin to developing incrementally in a REPL, but never formalizing those incremental tests.

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

Sidebar

Related Questions

Really a newbie question but I can't seem to find the answer. I need
Maybe it's a newbie question, but is there a method in C/C++ to prevent
Maybe the question sound not good or too simple. But not for me in
Maybe my question it's a little weird, but I'm trying to build a not-so-simple
I'm newbie in Python, but this question is not a homework (actually this code
Maybe this is a newbie question or RTFM question... but I couldn't find it
I am newbie of CoffeeScript so maybe my question is not constructive. If so,
This is possibly a newbie question, but I'm not sure what terms to search
Maybe a bit of a newbie question, but I don't want to mess up
Maybe this a newbie question, but according to my instruments there is a leak

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.