From 370c93f8ca47bfdc7ff85818f28fb0c77b942717 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 19 Dec 2008 17:28:56 +0000
Subject: [PATCH] Fix broken unit tests discovered by awang@ptc.com when attempting to port OpenDS to IBM JVM
---
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java
index a746aa2..8ac5932 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java
@@ -79,12 +79,12 @@
throws Exception
{
TestCaseUtils.startServer();
-
+
TestCaseUtils.dsconfig(
"set-sasl-mechanism-handler-prop",
"--handler-name", "DIGEST-MD5",
"--set", "server-fqdn:" + "127.0.0.1");
-
+
File pwFile = File.createTempFile("valid-bind-password-", ".txt");
pwFile.deleteOnExit();
FileWriter fileWriter = new FileWriter(pwFile);
@@ -108,7 +108,7 @@
@AfterClass
public void tearDown() throws Exception {
-
+
TestCaseUtils.dsconfig(
"set-sasl-mechanism-handler-prop",
"--handler-name", "DIGEST-MD5",
@@ -857,6 +857,8 @@
public void testPLAIN()
throws Exception
{
+ TestCaseUtils.initializeTestBackend(true);
+
String[] args =
{
"-h", "127.0.0.1",
--
Gitblit v1.10.0