JUnit not working in 3M7 [message #156950] |
Sat, 01 May 2004 21:15 |
Eclipse User |
|
|
|
Originally posted by: ccullum.yemtech.com
I will still have a problem with running JUnit in eclipse. If someone
would help me out, I would not have to keep posting. Here is what I do:
1. Create a test folder under my project
2. While the test folder is highlighted, I click on File->New->Other
3. I select Java->JUnit->TestCase
4. I set my source folder to be my project/test folder
5. I set the package to com.Users
6. I set the name to UserTest
7. I keep the superClass the same.
8. I change the Class to test to com.Users.User
9. I click Next
10. I choose my methods I want to create tests for.
11. I click on the Finish
12. I change the UserTest.suite() call to UserTest.class
13. I make sure that the UsertTest.java is highlighted and I click on
Run->RunAs->Junit Test
14. The Console comes up and says "Class not found com.Users.UserTest"
Why is this?
Thanks,
Christopher Cullum
|
|
|
Re: JUnit not working in 3M7 [message #157261 is a reply to message #156950] |
Wed, 05 May 2004 00:02 |
Eclipse User |
|
|
|
Originally posted by: rtayek.no.spam.freightgate.com
"Christopher Cullum" <ccullum@yemtech.com> wrote in message
news:pan.2004.05.01.21.15.48.720281@yemtech.com...
> I will still have a problem with running JUnit in eclipse....
> 5. I set the package to com.Users
> 8. I change the Class to test to com.Users.User
try making the packagename lower case: i.e. com.users.
> 12. I change the UserTest.suite() call to UserTest.class
> 13. I make sure that the UsertTest.java is highlighted and I click on
> Run->RunAs->Junit Test
> 14. The Console comes up and says "Class not found com.Users.UserTest"
maybe it thinks it's an inner class? in any case try to find the
com.Users.UserTest.class file.
hth
|
|
|
Powered by
FUDForum. Page generated in 0.03847 seconds