Results 1 to 2 of 2
  1. #1
    Hazza is offline Member
    Join Date
    Oct 2012
    Posts
    64
    Rep Power
    0

    Default Are individual jUnit test cases the same as a main method?

    Are individual jUnit test cases the same as a main method?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Are individual jUnit test cases the same as a main method?

    No, they are not the same thing. A main method in Java class in an entry point to application. While jUnit test case are for unit testing. The jUnit can report to you whether a test is pass or failed. You can for sure to use the main method to test. But you have to do alot of manual work.

Similar Threads

  1. test cases for threads
    By phoenox7 in forum Java Software
    Replies: 1
    Last Post: 02-24-2013, 08:26 AM
  2. Replies: 1
    Last Post: 12-16-2011, 11:14 PM
  3. How to test a void method in Junit?
    By jRookie in forum New To Java
    Replies: 7
    Last Post: 09-01-2010, 08:47 AM
  4. Replies: 1
    Last Post: 08-03-2009, 06:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •