Ok, I have wrote a mini-tutorial which explain how to create unit-tests using Apache Directory Server as a backend. I hope that it's not buggy, and that it can help you to setup a test environment.
Note that it won't work with the current 1.0.0 version (there is a problem in one of the unit test class used in the server), and this is the reason you had to rewrote it. I just expect to be able to reproduce your problem now that I have setup a correct env to reproduce it :) Here is the link to the turorial : http://directory.apache.org/apacheds/1.0/embedding.html Hope it helps. On 2/2/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:
Ok, I think I have to start again and build a sample that simply works. What I suggest is taht I will try to setup a real sample and add all the necessary steps to use ADS as an embeded server for unit tests purpose into a wiki pages, so that everybody will be able to play with it. It will take a little bit time (let say it can be done by the end of this week), but I really think it's needed. It won't be #1 on my priority list, but not far... I'll get you informed ! Thanks ! Emmanuel On 2/1/07, Pierre-Alain RIVIERE <[EMAIL PROTECTED]> wrote: > > Emmanuel Lecharny wrote: > > > > Well, I was wrong. What I wanted to say is that the filter is looking > > for : > > member=cn=Pierre-Alain > > RIVIERE,ou=Peoples,ou=Paris,ou=Offices,dc=ippon,dc=fr > > and there is no entry with this value, hence the exception. > The result is the same even if you process a search over an existing > entry. > > "(&(member=cn=Bad Eékà,ou=Paris,ou=Offices,dc=ippon,dc=fr)" + > "(objectClass=ipponGroup))"; > > "(&(member=cn=Good One,ou=Paris,ou=Offices,dc=ippon,dc=fr)" + > "(objectClass=ipponGroup))"; > > And even if "member=cn=Pierre-Alain > RIVIERE,ou=Peoples,ou=Paris,ou=Offices,dc=ippon,dc=fr" does not exist > ApacheDS should not throw NPE. > > > > I have the same pb... Looking... > > > > Sorry, I did the test while fixing many differnet other things, so the > > > bumpy > > feeling you may have... > > No problem, you seem to be a busy guy ;) > -- Cordialement, Emmanuel Lécharny www.iktek.com
-- Cordialement, Emmanuel Lécharny www.iktek.com
