Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JUnit Test Case not listed as option to choose(total beginner tutorial lesson 4 - no JUnit option available to select)
JUnit Test Case not listed as option to choose [message #814591] Tue, 06 March 2012 16:34 Go to next message
Dave Fandrey is currently offline Dave FandreyFriend
Messages: 1
Registered: March 2012
Junior Member
Hello, I ran into a snag while going through lesson #4 (Unit testing topic under the 16 part tutorials offered for totalbeginner). I created a new Source (test) and a new package (org.totalbeginner.tutorial) under the TotalBeginner project as directed. However, when I then right-click on this package in an attempt to select new, Junit TestCase... 'JUnit Test Case' does not appear at all on my list as it does in the tutorial. How do I get to this option so that I can continue?
Thank you for your assistance.
Dave
Re: JUnit Test Case not listed as option to choose [message #814603 is a reply to message #814591] Tue, 06 March 2012 16:50 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/6/2012 9:34 AM, Dave Fandrey wrote:
> Hello, I ran into a snag while going through lesson #4 (Unit testing
> topic under the 16 part tutorials offered for totalbeginner). I created
> a new Source (test) and a new package (org.totalbeginner.tutorial) under
> the TotalBeginner project as directed. However, when I then right-click
> on this package in an attempt to select new, Junit TestCase... 'JUnit
> Test Case' does not appear at all on my list as it does in the tutorial.
> How do I get to this option so that I can continue?
> Thank you for your assistance.
> Dave

Without trying the tutorial...

Have you added a JUnit library to your classpath?

Right-click your project, choose Build Path -> Configure Build Path
Click on Libraries tab.
Click on Add Library button.
Click on JUnit and Next button.
Choose JUnit version.
Click Finish.

Return to the tutorial.
Re: JUnit Test Case not listed as option to choose [message #1835092 is a reply to message #814603] Tue, 24 November 2020 16:20 Go to previous message
Goon Yahgoodthing is currently offline Goon YahgoodthingFriend
Messages: 1
Registered: November 2020
Junior Member
Ehh.. another possibility here ..

Maybe they were doing what I was doing... ;^)

Which was... right clicking in Project Explorer rather than Package Explorer...

If you right click in Project Explorer and choose New, you see a much shorter menu that doesn't include the Junit option.

Needs to be done in Package Explorer view...
Previous Topic:An error has occurred
Next Topic:Download pages BLANK
Goto Forum:
  


Current Time: Thu Apr 18 15:31:11 GMT 2024

Powered by FUDForum. Page generated in 0.03236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top