Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d666fc7edf
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (17 sloc) 0.73 kb
import junit.framework._;
import Assert._;
import net.liftweb.ldap.SimpleLDAPVendor
object LDAPTest {
def suite: Test = new TestSuite(classOf[LDAPTest])
def main(args : Array[String]) = junit.textui.TestRunner.run(suite)
}
class LDAPTest extends TestCase("ldap") {
def testParameters = {
SimpleLDAPVendor.parameters = () => Map("ldap.url" -> "localhost")
assertTrue(SimpleLDAPVendor.parameters().get("ldap.url") == Some("localhost"))
}
def testLoadParametersFile = {
SimpleLDAPVendor.parameters = () => SimpleLDAPVendor.parametersFromFile("src/test/resources/ldap.properties")
assertTrue(SimpleLDAPVendor.parameters().get("ldap.url") == Some("ldap://localhost"))
}
}
Jump to Line
Something went wrong with that request. Please try again.