Re: Mocking LDAP server for integration tests

2013-06-16 Thread Jason Pell
For my day job we use OpenDJ (previously OpenDS) to start an embedded ldap
server.  Works very well.




On Thu, Jun 13, 2013 at 11:33 PM, Oliver Wulff owu...@talend.com wrote:

 Spring also supports starting an embedded LDAP server. See here:

 http://stackoverflow.com/questions/544550/spring-embedded-ldap-server-in-unit-tests

 http://stackoverflow.com/questions/13396708/integration-tests-with-spring-security-and-ldap?lq=1

 Thanks
 Oli

 
 From: Andrei Shakirin [ashaki...@talend.com]
 Sent: 13 June 2013 15:21
 To: dev@cxf.apache.org
 Cc: cohei...@apache.org
 Subject: RE: Mocking LDAP server for integration tests

 Thanks Colm, I will take a look in WSS4J.

  -Original Message-
  From: Colm O hEigeartaigh [mailto:cohei...@apache.org]
  Sent: Donnerstag, 13. Juni 2013 11:14
  To: dev@cxf.apache.org
  Subject: Re: Mocking LDAP server for integration tests
 
  WSS4J trunk has an integration module which uses Apache DS as a
  Kerberos
  Server:
 
  http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/
 
  Colm.
 
 
  On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
  ashaki...@talend.comwrote:
 
   Hi,
  
   I am working on integration tests for XKMS and thinking about mocking
   (or using lightweight) LDAP server.
   I found some topics regarding this:
  
   -   in UnboundID (https://www.unboundid.com/products/ldap-sdk/
 )
  
   -  Mocking using Mockito (
   http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
  
   Has anybody experience to do it in Apache projects, is there any
 typical
   solution for it?
  
   Regards,
   Andrei.
  
 
 
 
  --
  Colm O hEigeartaigh
 
  Talend Community Coder
  http://coders.talend.com



Re: Mocking LDAP server for integration tests

2013-06-13 Thread Colm O hEigeartaigh
WSS4J trunk has an integration module which uses Apache DS as a Kerberos
Server:

http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/

Colm.


On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin ashaki...@talend.comwrote:

 Hi,

 I am working on integration tests for XKMS and thinking about mocking (or
 using lightweight) LDAP server.
 I found some topics regarding this:

 -   in UnboundID (https://www.unboundid.com/products/ldap-sdk/)

 -  Mocking using Mockito (
 http://java.dzone.com/articles/mocking-out-ldapjndi-unit)

 Has anybody experience to do it in Apache projects, is there any typical
 solution for it?

 Regards,
 Andrei.




-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


RE: Mocking LDAP server for integration tests

2013-06-13 Thread Andrei Shakirin
Thanks Colm, I will take a look in WSS4J.

 -Original Message-
 From: Colm O hEigeartaigh [mailto:cohei...@apache.org]
 Sent: Donnerstag, 13. Juni 2013 11:14
 To: dev@cxf.apache.org
 Subject: Re: Mocking LDAP server for integration tests
 
 WSS4J trunk has an integration module which uses Apache DS as a
 Kerberos
 Server:
 
 http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/
 
 Colm.
 
 
 On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
 ashaki...@talend.comwrote:
 
  Hi,
 
  I am working on integration tests for XKMS and thinking about mocking
  (or using lightweight) LDAP server.
  I found some topics regarding this:
 
  -   in UnboundID (https://www.unboundid.com/products/ldap-sdk/)
 
  -  Mocking using Mockito (
  http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
 
  Has anybody experience to do it in Apache projects, is there any typical
  solution for it?
 
  Regards,
  Andrei.
 
 
 
 
 --
 Colm O hEigeartaigh
 
 Talend Community Coder
 http://coders.talend.com


RE: Mocking LDAP server for integration tests

2013-06-13 Thread Oliver Wulff
Spring also supports starting an embedded LDAP server. See here:
http://stackoverflow.com/questions/544550/spring-embedded-ldap-server-in-unit-tests
http://stackoverflow.com/questions/13396708/integration-tests-with-spring-security-and-ldap?lq=1

Thanks
Oli


From: Andrei Shakirin [ashaki...@talend.com]
Sent: 13 June 2013 15:21
To: dev@cxf.apache.org
Cc: cohei...@apache.org
Subject: RE: Mocking LDAP server for integration tests

Thanks Colm, I will take a look in WSS4J.

 -Original Message-
 From: Colm O hEigeartaigh [mailto:cohei...@apache.org]
 Sent: Donnerstag, 13. Juni 2013 11:14
 To: dev@cxf.apache.org
 Subject: Re: Mocking LDAP server for integration tests

 WSS4J trunk has an integration module which uses Apache DS as a
 Kerberos
 Server:

 http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/

 Colm.


 On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
 ashaki...@talend.comwrote:

  Hi,
 
  I am working on integration tests for XKMS and thinking about mocking
  (or using lightweight) LDAP server.
  I found some topics regarding this:
 
  -   in UnboundID (https://www.unboundid.com/products/ldap-sdk/)
 
  -  Mocking using Mockito (
  http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
 
  Has anybody experience to do it in Apache projects, is there any typical
  solution for it?
 
  Regards,
  Andrei.
 



 --
 Colm O hEigeartaigh

 Talend Community Coder
 http://coders.talend.com