Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions modules/ldap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ description = "Testcontainers :: LDAP"
dependencies {
api project(':testcontainers')

testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'com.unboundid:unboundid-ldapsdk:7.0.3'
}

test {
useJUnitPlatform()
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import com.unboundid.ldap.sdk.LDAPConnection;
import com.unboundid.ldap.sdk.LDAPException;
import com.unboundid.ldap.sdk.LDAPURL;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class LLdapContainerTest {
class LLdapContainerTest {

@Test
public void test() throws LDAPException {
void test() throws LDAPException {
try ( // container {
LLdapContainer lldap = new LLdapContainer("lldap/lldap:v0.6.1-alpine")
// }
Expand All @@ -24,7 +24,7 @@ public void test() throws LDAPException {
}

@Test
public void testUsingLdapUrl() throws LDAPException {
void testUsingLdapUrl() throws LDAPException {
try (LLdapContainer lldap = new LLdapContainer("lldap/lldap:v0.6.1-alpine")) {
lldap.start();

Expand All @@ -36,7 +36,7 @@ public void testUsingLdapUrl() throws LDAPException {
}

@Test
public void testWithCustomBaseDn() throws LDAPException {
void testWithCustomBaseDn() throws LDAPException {
try (
LLdapContainer lldap = new LLdapContainer("lldap/lldap:v0.6.1-alpine")
.withBaseDn("dc=testcontainers,dc=org")
Expand All @@ -53,7 +53,7 @@ public void testWithCustomBaseDn() throws LDAPException {
}

@Test
public void testWithCustomUserPass() throws LDAPException {
void testWithCustomUserPass() throws LDAPException {
try (LLdapContainer lldap = new LLdapContainer("lldap/lldap:v0.6.1-alpine").withUserPass("adminPas$word")) {
lldap.start();

Expand Down
Loading