From 821d2150765f0ab0ac6ccbbc9f397aa65186d590 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 25 Feb 2015 15:56:57 +0000
Subject: [PATCH] OPENDJ-1585 OPENDJ-1843 CR-5758 Improve code related to DN normalization
---
opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/TestJebFormat.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/TestJebFormat.java b/opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/TestJebFormat.java
index b7b9f4d..052ba7e 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/TestJebFormat.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/backends/pluggable/TestJebFormat.java
@@ -357,7 +357,7 @@
*/
@Test
public void testEntryToAndFromDatabase() throws Exception {
- ensureTheServerIsUpAndRunning();
+ ensureServerIsUpAndRunning();
// Convert the test LDIF string to a byte array
byte[] originalLDIFBytes = StaticUtils.getBytes(ldifString);
@@ -428,7 +428,7 @@
*/
@Test
public void testEntryToAndFromDatabaseV1() throws Exception {
- ensureTheServerIsUpAndRunning();
+ ensureServerIsUpAndRunning();
// Convert the test LDIF string to a byte array
byte[] originalLDIFBytes = StaticUtils.getBytes(ldifString);
@@ -477,7 +477,7 @@
@Test(dataProvider = "encodeConfigs")
public void testEntryToAndFromDatabaseV2(EntryEncodeConfig config)
throws Exception {
- ensureTheServerIsUpAndRunning();
+ ensureServerIsUpAndRunning();
// Convert the test LDIF string to a byte array
byte[] originalLDIFBytes = StaticUtils.getBytes(ldifString);
@@ -508,7 +508,7 @@
@Test(dataProvider = "encodeConfigs")
public void testEntryToAndFromDatabaseV3(EntryEncodeConfig config)
throws Exception {
- ensureTheServerIsUpAndRunning();
+ ensureServerIsUpAndRunning();
// Convert the test LDIF string to a byte array
byte[] originalLDIFBytes = StaticUtils.getBytes(ldifString);
@@ -539,19 +539,18 @@
{ "dc=example", 0 },
{ "dc=example,dc=com", 7 },
{ "dc=example,dc=com\\,org", 11 },
-
};
}
@Test(dataProvider="findDnKeyParentData")
public void testFindDnKeyParent(String dn, int expectedLength) throws Exception
{
- ensureTheServerIsUpAndRunning();
+ ensureServerIsUpAndRunning();
ByteString dnKey = JebFormat.dnToDNKey(DN.valueOf(dn), 0);
assertThat(JebFormat.findDNKeyParent(dnKey)).isEqualTo(expectedLength);
}
- private void ensureTheServerIsUpAndRunning() throws Exception
+ private void ensureServerIsUpAndRunning() throws Exception
{
TestCaseUtils.startServer();
}
--
Gitblit v1.10.0