From 44aad3f84d2a820094f3b5e73722778edc8c23f5 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 24 Apr 2007 22:40:57 +0000
Subject: [PATCH] Make several significant changes to the OpenDS code base, including:
---
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/TestLDAPException.java | 39 ++++++++++++++++++++-------------------
1 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/TestLDAPException.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/TestLDAPException.java
index 463030b..1d4a3c8 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/TestLDAPException.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/TestLDAPException.java
@@ -32,27 +32,28 @@
import static org.opends.server.messages.ProtocolMessages.MSGID_ECN_INVALID_ELEMENT_TYPE;
import static org.opends.server.messages.ProtocolMessages.MSGID_ECN_CANNOT_DECODE_VALUE;
import static org.testng.Assert.*;
+import org.opends.server.types.LDAPException;
public class TestLDAPException extends LdapTestCase {
- @Test()
- public void testLDAPException() {
- int msgID = MSGID_ECN_INVALID_ELEMENT_TYPE;
- String message = getMessage(msgID);
- LDAPException ex=new LDAPException(LDAPResultCode.PROTOCOL_ERROR, msgID, message);
- assertTrue(ex.getResultCode() == LDAPResultCode.PROTOCOL_ERROR);
- assertTrue(ex.getMessageID() == msgID);
- }
+ @Test()
+ public void testLDAPException() {
+ int msgID = MSGID_ECN_INVALID_ELEMENT_TYPE;
+ String message = getMessage(msgID);
+ LDAPException ex=new LDAPException(LDAPResultCode.PROTOCOL_ERROR, msgID, message);
+ assertTrue(ex.getResultCode() == LDAPResultCode.PROTOCOL_ERROR);
+ assertTrue(ex.getMessageID() == msgID);
+ }
- @Test()
- public void testLDAPExceptionThrowable() {
- int msgID = MSGID_ECN_INVALID_ELEMENT_TYPE;
- String message = getMessage(msgID);
- LDAPException ex=new LDAPException(LDAPResultCode.OTHER, msgID, message);
- int msgID1 = MSGID_ECN_CANNOT_DECODE_VALUE;
- String message1 = getMessage(msgID);
- new LDAPException(LDAPResultCode.PROTOCOL_ERROR, msgID1, message1,ex);
- assertTrue(ex.getResultCode() == LDAPResultCode.OTHER);
- assertTrue(ex.getMessageID() == msgID);
- }
+ @Test()
+ public void testLDAPExceptionThrowable() {
+ int msgID = MSGID_ECN_INVALID_ELEMENT_TYPE;
+ String message = getMessage(msgID);
+ LDAPException ex=new LDAPException(LDAPResultCode.OTHER, msgID, message);
+ int msgID1 = MSGID_ECN_CANNOT_DECODE_VALUE;
+ String message1 = getMessage(msgID);
+ new LDAPException(LDAPResultCode.PROTOCOL_ERROR, msgID1, message1,ex);
+ assertTrue(ex.getResultCode() == LDAPResultCode.OTHER);
+ assertTrue(ex.getMessageID() == msgID);
+ }
}
--
Gitblit v1.10.0