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

Jean-Noël Rouvignac
03.51.2016 0b75361593e78cb6a83d7f763080b36a60e3eb79
opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/DN2IDTest.java
@@ -150,20 +150,20 @@
          cursor.next();
          final ByteString parentDN = cursor.getKey();
          cursor.next();
          assertThat(DN2ID.isChild(rootDN, parentDN)).isTrue();
          assertThat(DnKeyFormat.isChild(rootDN, parentDN)).isTrue();
          final ByteString childDN = cursor.getKey();
          assertThat(DN2ID.isChild(parentDN, childDN)).isTrue();
          assertThat(DnKeyFormat.isChild(parentDN, childDN)).isTrue();
          cursor.next();
          final ByteString otherChildDN = cursor.getKey();
          assertThat(DN2ID.isChild(parentDN, otherChildDN)).isTrue();
          assertThat(DN2ID.isChild(childDN, otherChildDN)).isFalse();
          assertThat(DnKeyFormat.isChild(parentDN, otherChildDN)).isTrue();
          assertThat(DnKeyFormat.isChild(childDN, otherChildDN)).isFalse();
          final ByteString lastChildDN = cursor.getKey();
          assertThat(DN2ID.isChild(parentDN, lastChildDN)).isTrue();
          assertThat(DN2ID.isChild(otherChildDN, lastChildDN)).isFalse();
          assertThat(DN2ID.isChild(childDN, lastChildDN)).isFalse();
          assertThat(DnKeyFormat.isChild(parentDN, lastChildDN)).isTrue();
          assertThat(DnKeyFormat.isChild(otherChildDN, lastChildDN)).isFalse();
          assertThat(DnKeyFormat.isChild(childDN, lastChildDN)).isFalse();
        }
        return null;
      }