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/api/AlertHandlerTestCase.java |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/api/AlertHandlerTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/api/AlertHandlerTestCase.java
index 7d531b0..85d5e66 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/api/AlertHandlerTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/api/AlertHandlerTestCase.java
@@ -34,6 +34,7 @@
 import org.testng.annotations.Test;
 
 import org.opends.server.TestCaseUtils;
+import org.opends.messages.Message;
 import org.opends.server.api.AlertGenerator;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.extensions.DummyAlertHandler;
@@ -51,12 +52,6 @@
        extends APITestCase
        implements AlertGenerator
 {
-  /**
-   * The alert ID to use for these tests.
-   */
-  public static final int ALERT_ID = 12345;
-
-
 
   /**
    * The alert type to use for these tests.
@@ -76,7 +71,7 @@
   /**
    * The alert message to use for these tests.
    */
-  public static final String ALERT_MESSAGE = "This is the alert message";
+  public static final Message ALERT_MESSAGE = Message.raw("This is the alert message");
 
 
 
@@ -105,7 +100,7 @@
   {
     int count = DummyAlertHandler.getAlertCount();
 
-    DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+    DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                           ALERT_MESSAGE);
     assertEquals(DummyAlertHandler.getAlertCount(), (count+1));
   }
@@ -127,7 +122,7 @@
     {
       int count = DummyAlertHandler.getAlertCount();
 
-      DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+      DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                             ALERT_MESSAGE);
       assertEquals(DummyAlertHandler.getAlertCount(), (count+1));
     }
@@ -158,7 +153,7 @@
     {
       int count = DummyAlertHandler.getAlertCount();
 
-      DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+      DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                             ALERT_MESSAGE);
       assertEquals(DummyAlertHandler.getAlertCount(), count);
     }
@@ -189,7 +184,7 @@
     {
       int count = DummyAlertHandler.getAlertCount();
 
-      DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+      DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                             ALERT_MESSAGE);
       assertEquals(DummyAlertHandler.getAlertCount(), count);
     }
@@ -220,7 +215,7 @@
     {
       int count = DummyAlertHandler.getAlertCount();
 
-      DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+      DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                             ALERT_MESSAGE);
       assertEquals(DummyAlertHandler.getAlertCount(), (count+1));
     }
@@ -252,7 +247,7 @@
     {
       int count = DummyAlertHandler.getAlertCount();
 
-      DirectoryServer.sendAlertNotification(this, ALERT_TYPE, ALERT_ID,
+      DirectoryServer.sendAlertNotification(this, ALERT_TYPE,
                                             ALERT_MESSAGE);
       assertEquals(DummyAlertHandler.getAlertCount(), count);
     }

--
Gitblit v1.10.0