DN2IDTest.java revision f4fc21a222c514860b5232cce2d9f890639f5b5a
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2015 ForgeRock AS
*/
public class DN2IDTest extends DirectoryServerTestCase
{
private PDBStorage storage;
// FIXME: This is required since PDBStorage is now using
// DirectoryServer static method.
public void startServer() throws Exception
{
}
{
}
}
public void tearDown()
{
}
{
{
"dc=example,dc=com",
"ou=Devices,dc=example,dc=com",
"cn=dev0,ou=Devices,dc=example,dc=com",
"ou=People,dc=example,dc=com",
"cn=foo,ou=People,dc=example,dc=com",
"cn=barbar,ou=People,dc=example,dc=com",
"cn=foofoo,ou=People,dc=example,dc=com",
"cn=bar,ou=People,dc=example,dc=com",
"cn=dev0,cn=bar,ou=People,dc=example,dc=com",
"cn=dev1,cn=bar,ou=People,dc=example,dc=com"
};
{
}
}
@Test
public void testCanAddDN() throws Exception
{
populate();
}
@Test
{
{
{
}
return null;
}
});
}
@Test
public void testGetNonExistingDNReturnNull() throws Exception
{
}
@Test
public void testCanRemove() throws Exception
{
populate();
}
@Test
public void testRemoveNonExistingEntry() throws Exception
{
}
@Test
public void testTraverseChildren() throws Exception
{
populate();
get("cn=bar,ou=People,dc=example,dc=com"),
get("cn=barbar,ou=People,dc=example,dc=com"),
get("cn=foo,ou=People,dc=example,dc=com"),
get("cn=foofoo,ou=People,dc=example,dc=com"));
}
@Test
public void testTraverseSubordinates() throws Exception
{
populate();
get("cn=bar,ou=People,dc=example,dc=com"),
get("cn=dev0,cn=bar,ou=People,dc=example,dc=com"),
get("cn=dev1,cn=bar,ou=People,dc=example,dc=com"),
get("cn=barbar,ou=People,dc=example,dc=com"),
get("cn=foo,ou=People,dc=example,dc=com"),
get("cn=foofoo,ou=People,dc=example,dc=com"));
}
{
{
{
}
});
}
{
{
{
{
}
}
});
}
{
{
{
{
}
}
});
}
}
return values;
}
{
{
{
}
});
}
{
{
{
}
});
}
{
}
{
}
{
return backendCfg;
}
}