mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
21.04.2013 f590ef177e05cff287db176160ca7ef26a7f8543
opendj3/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/AuthzIdTemplateTest.java
@@ -49,6 +49,12 @@
                map("uid", "test.user", "realm", "test+cn=quoting")
            },
            {
                // Should not perform DN quoting.
                "dn:{dn}",
                "dn:uid=test.user,ou=acme,dc=example,dc=com",
                map("dn", "uid=test.user,ou=acme,dc=example,dc=com")
            },
            {
                "u:{uid}@{realm}.example.com",
                "u:test.user@acme.example.com",
                map("uid", "test.user", "realm", "acme")
@@ -82,6 +88,11 @@
                map("uid", "test.user")
            },
            {
                // Malformed DN.
                "dn:{dn}",
                map("dn", "uid")
            },
            {
                "u:{uid}@{realm}.example.com",
                map("uid", "test.user")
            },
@@ -105,7 +116,6 @@
            },
        };
        // @formatter:on
    }
    @Test(dataProvider = "invalidTemplates", expectedExceptions = IllegalArgumentException.class)