From fd2517020642abd8e4aa0a2e75291ea0b17179ab Mon Sep 17 00:00:00 2001
From: hajma <hajma@localhost>
Date: Wed, 10 Dec 2008 18:03:05 +0000
Subject: [PATCH] fix for MakeLDIFTestCase in non-english locale --This line, and th se below, will be ignored--

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/tools/makeldif/MakeLDIFTestCase.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/makeldif/MakeLDIFTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/makeldif/MakeLDIFTestCase.java
index 1ac0bdb..c1f1add 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/makeldif/MakeLDIFTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/makeldif/MakeLDIFTestCase.java
@@ -40,6 +40,7 @@
 import org.testng.annotations.Test;
 
 import static org.testng.Assert.*;
+import static org.opends.messages.ToolMessages.*;
 
 
 /**
@@ -92,7 +93,8 @@
     catch (InitializationException e)
     {
       String msg = e.getMessage();
-      assertTrue( msg.contains("line 1"), msg );
+      Message msg_locale = ERR_MAKELDIF_TAG_UNDEFINED_ATTRIBUTE.get("missingVar",1);
+      assertTrue (msg.equals(msg_locale.toString()), msg);
     }
   }
 }

--
Gitblit v1.10.0