mkporwit
10/24/2017, 6:20 PMcom.github.trevershick.test.ldap, which can take an annotation to additionally configure the LDAP instance. This annotation works fine in JUnit (4 and 5) based tests, but appears to break with Spek.
@LdapConfiguration(ldifs = arrayOf(Ldif("/hoyluPersonTestSchema.ldif")))
class LdapHandlerSpec : Spek({
val ldapServer = LdapServerResource(this)raniejade
10/25/2017, 1:35 AMobject instead of class and change LdapServerResource(this) to LdapServerResource(LdapHandlerSpec)?mkporwit
10/25/2017, 1:39 AMmkporwit
10/25/2017, 1:46 AMmkporwit
10/25/2017, 1:46 AMmkporwit
10/25/2017, 1:47 AMraniejade
10/25/2017, 1:47 AMthis doesn't refer to the spec instance - it refers to the receiver of the top level lambda.raniejade
10/25/2017, 1:49 AMobject instead of class.mkporwit
10/25/2017, 1:50 AMraniejade
10/25/2017, 1:52 AMabstract class Spek(val spec: Spec.() -> Unit). https://github.com/spekframework/spek/blob/1.x/spek-api/src/main/kotlin/org/jetbrains/spek/api/Spek.ktraniejade
10/25/2017, 1:52 AMmkporwit
10/25/2017, 1:53 AMmkporwit
10/25/2017, 1:53 AMmkporwit
10/25/2017, 1:53 AMraniejade
10/25/2017, 1:53 AM