From c1c96a177ed78de8eded9d6a244db5e3b812517c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 01 Jun 2016 10:07:13 +0000
Subject: [PATCH] Removed calls to TestCaseUtils.startFakeServer()

---
 opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ByteArrayTest.java |   23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ByteArrayTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ByteArrayTest.java
index c85a532..a10c53f 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ByteArrayTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/protocol/ByteArrayTest.java
@@ -21,25 +21,19 @@
 import java.util.Iterator;
 import java.util.zip.DataFormatException;
 
+import org.forgerock.opendj.ldap.DN;
 import org.opends.server.DirectoryServerTestCase;
-import org.opends.server.TestCaseUtils;
 import org.opends.server.replication.common.CSN;
 import org.opends.server.replication.common.ServerState;
-import org.forgerock.opendj.ldap.DN;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 
 import static org.testng.Assert.*;
 
-/**
- * Test for {@link ByteArrayBuilder} and {@link ByteArrayScanner} classes.
- */
+/** Test for {@link ByteArrayBuilder} and {@link ByteArrayScanner} classes. */
 @SuppressWarnings("javadoc")
 public class ByteArrayTest extends DirectoryServerTestCase
 {
-
   private static final class IntegerRange implements Iterator<Object[]>
   {
     private int next;
@@ -67,18 +61,6 @@
     public void remove() { /* unused */ }
   }
 
-  @BeforeClass
-  public void setup() throws Exception
-  {
-    TestCaseUtils.startFakeServer();
-  }
-
-  @AfterClass
-  public void teardown() throws Exception
-  {
-    TestCaseUtils.shutdownFakeServer();
-  }
-
   private final byte[] byteArray = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, };
 
   @Test
@@ -232,5 +214,4 @@
     final byte[] bytes = new ByteArrayBuilder().appendString("this is not a valid DN").toByteArray();
     new ByteArrayScanner(bytes).nextDN();
   }
-
 }

--
Gitblit v1.10.0