From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java
index 6aa55b4..d821ab8 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/asn1/TestASN1Exception.java
@@ -31,7 +31,7 @@
 import org.testng.annotations.Test;
 
 import static org.testng.Assert.*;
-
+import org.opends.messages.Message;
 
 
 /**
@@ -47,7 +47,7 @@
   @Test()
   public void testConstructor1()
   {
-    new ASN1Exception(1, "Test");
+    new ASN1Exception(Message.raw("Test"));
   }
 
 
@@ -59,22 +59,8 @@
   @Test()
   public void testConstructor2()
   {
-    new ASN1Exception(1, "Test", new Exception());
+    new ASN1Exception(Message.raw("Test"), new Exception());
   }
 
-
-
-  /**
-   * Tests the <CODE>getMessageID</CODE> method.
-   */
-  @Test
-  public void testGetMessageID()
-  {
-    for (int i=0; i < 100; i++)
-    {
-      ASN1Exception e = new ASN1Exception(i, "Test");
-      assertEquals(e.getMessageID(), i);
-    }
-  }
 }
 

--
Gitblit v1.10.0