Exemplo n.º 1
0
 public void testBase64Value() {
   LdifData ldd = new LdifData("description", "SGVsbG8Kd29ybGQ=", true);
   assertEquals("Hello\nworld", ldd.getValue());
 }
Exemplo n.º 2
0
 public void testComplexValue() throws IOException {
   LdifData ldd = new LdifData("cn", "Dietrich\nPfeifle");
   assertEquals("Dietrich\nPfeifle", ldd.getValue());
   assertEquals("cn:: RGlldHJpY2gKUGZlaWZsZQ==", encodeToString(ldd));
 }
Exemplo n.º 3
0
 public void testConstructorAndGetters() {
   LdifData ldd = new LdifData("dn", "dc=structure-net, dc=de");
   assertEquals("dn", ldd.getName());
   assertEquals("dc=structure-net, dc=de", ldd.getValue());
 }