Skip to content

Commit 79586cc

Browse files
committed
use Mongo ExternalResource
1 parent 4a734fd commit 79586cc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
File renamed without changes.

lightblue-ldap-integration-test/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
<dependency>
4646
<groupId>com.redhat.lightblue.mongo</groupId>
4747
<artifactId>mongo-config</artifactId>
48-
<version>1.2.0-SNAPSHOT</version>
48+
<version>1.3.0-SNAPSHOT</version>
4949
<scope>test</scope>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.redhat.lightblue.mongo</groupId>
5353
<artifactId>mongo-test</artifactId>
54-
<version>1.2.0-SNAPSHOT</version>
54+
<version>1.3.0-SNAPSHOT</version>
5555
<scope>test</scope>
5656
</dependency>
5757
</dependencies>

lightblue-ldap-integration-test/src/test/java/com/redhat/lightblue/crud/ldap/ITCaseLdapCRUDControllerTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@
3232
import com.redhat.lightblue.ldap.test.LdapServerExternalResource;
3333
import com.redhat.lightblue.ldap.test.LdapServerExternalResource.InMemoryLdapServer;
3434
import com.redhat.lightblue.mediator.Mediator;
35+
import com.redhat.lightblue.mongo.test.MongoServerExternalResource;
36+
import com.redhat.lightblue.mongo.test.MongoServerExternalResource.InMemoryMongoServer;
3537
import com.redhat.lightblue.util.test.AbstractJsonNodeTest;
3638

3739
@InMemoryLdapServer
40+
@InMemoryMongoServer
3841
public class ITCaseLdapCRUDControllerTest{
3942

4043
@Rule
4144
public LdapServerExternalResource ldapServer = LdapServerExternalResource.createDefaultInstance();
4245

46+
@Rule
47+
public MongoServerExternalResource mongoServer = new MongoServerExternalResource();
48+
4349
@Before
4450
public void before() throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InstantiationException{
4551
if(mediator == null){

0 commit comments

Comments
 (0)