| | |
| | | .getTestChildrenRelationDefinition(), "test-child-1"); |
| | | |
| | | // Now serialize it. |
| | | DNBuilder builder = new DNBuilder(); |
| | | path.serialize(builder); |
| | | DN actual = builder.getInstance(); |
| | | DN actual = DNBuilder.create(path); |
| | | DN expected = DN |
| | | .decode("cn=test-child-1,cn=test children,cn=test-parent-1,cn=test parents,cn=config"); |
| | | |
| | |
| | | // Now serialize it. |
| | | LDAPProfile.getInstance().pushWrapper(wrapper); |
| | | try { |
| | | DNBuilder builder = new DNBuilder(); |
| | | path.serialize(builder); |
| | | DN actual = builder.getInstance(); |
| | | DN actual = DNBuilder.create(path); |
| | | DN expected = DN |
| | | .decode("cn=singleton-test-child,cn=test-parent-1,cn=test parents,cn=config"); |
| | | |
| | |
| | | .getOptionalTestChildRelationDefinition()); |
| | | |
| | | // Now serialize it. |
| | | DNBuilder builder = new DNBuilder(); |
| | | path.serialize(builder); |
| | | DN actual = builder.getInstance(); |
| | | DN actual = DNBuilder.create(path); |
| | | DN expected = DN |
| | | .decode("cn=optional test child,cn=test-parent-1,cn=test parents,cn=config"); |
| | | |