Added unit test for parsing a DN containing a properly escaped quotation.

This commit is contained in:
Ulrik Sandberg
2008-02-08 00:32:15 +00:00
parent 0e03470197
commit b0b87aded9

View File

@@ -470,6 +470,14 @@ public class DistinguishedNameTest extends TestCase {
}
}
/**
* Test case to verify correct parsing for issue on forums.
*/
public void testParseValidQuotation() {
DistinguishedName name = new DistinguishedName("cn=jo\"hn doe");
assertNotNull(name);
}
public void testAppendChained() {
DistinguishedName tested = new DistinguishedName("dc=mycompany,dc=com");
tested.append("ou", "company1").append("cn", "john doe");