| Author |
Issue in running standalone Junit Class
|
Vikram Gosain
Greenhorn
Joined: Jun 02, 2009
Posts: 25
|
|
In my standalone Junit class the code that I have written is
And I am getting the exception..
Could anyone please help me fixing this?
|
-Vikz
|
 |
Tomek Kaczanowski
author
Ranch Hand
Joined: Oct 26, 2005
Posts: 39
|
|
Hello,
the bug does not seem to be related to JUnit. When googling for the error you got, I find a lot of resources all pointing out to the fact that the LDAP server does not approve anonymous connections. This is most probably the source of your problems. I can't help you with LDAP, but google has answers.
To make it a little bit easier, I would suggest to create a simple "main" method and put the LDAP connection code there, and work on it as long as I do not get the connectivity right. After this I would move the working code to setUp method.
|
Tomek Kaczanowski
Book author: Practical Unit Testing with TestNG and Mockito
http://practicalunittesting.com
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
|
|
Anand Bhatt, Your post was moved to a new topic.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Issue in running standalone Junit Class
|
|
|