From 72650d4cc41c64136d064967d7fec3726d850fee Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 14 Oct 2010 11:52:28 +0000
Subject: [PATCH] Multiple enhancements and bug fixes to the SDK (update from OpenDS by matthew_swift):
---
sdk/tests/unit-tests-testng/src/org/opends/sdk/requests/GSSAPISASLBindRequestTestCase.java | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/sdk/tests/unit-tests-testng/src/org/opends/sdk/requests/GSSAPISASLBindRequestTestCase.java b/sdk/tests/unit-tests-testng/src/org/opends/sdk/requests/GSSAPISASLBindRequestTestCase.java
index 9241213..eadef95 100644
--- a/sdk/tests/unit-tests-testng/src/org/opends/sdk/requests/GSSAPISASLBindRequestTestCase.java
+++ b/sdk/tests/unit-tests-testng/src/org/opends/sdk/requests/GSSAPISASLBindRequestTestCase.java
@@ -36,7 +36,6 @@
import java.util.Arrays;
import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertTrue;
/**
* Tests GSSAPI SASL Bind requests.
@@ -81,20 +80,19 @@
@Test(dataProvider = "GSSAPISASLBindRequests")
public void testQOP(GSSAPISASLBindRequest request) throws Exception
{
- GSSAPISASLBindRequest.QOPOption [] options =
- new GSSAPISASLBindRequest.QOPOption[]{
- GSSAPISASLBindRequest.QOPOption.AUTH,
- GSSAPISASLBindRequest.QOPOption.AUTH_INT,
- GSSAPISASLBindRequest.QOPOption.AUTH_CONF};
- request.setQOP(options);
- assertTrue(Arrays.deepEquals(options, request.getQOP()));
+ String[] options = new String[] {
+ GSSAPISASLBindRequest.QOP_AUTH,
+ GSSAPISASLBindRequest.QOP_AUTH_INT,
+ GSSAPISASLBindRequest.QOP_AUTH_CONF };
+ request.addQOP(options);
+ assertEquals(request.getQOPs(), Arrays.asList(options));
}
@Test(dataProvider = "GSSAPISASLBindRequests")
public void testServerAuth(GSSAPISASLBindRequest request) throws Exception
{
request.setServerAuth(true);
- assertEquals(request.getServerAuth(), true);
+ assertEquals(request.isServerAuth(), true);
}
@Test(dataProvider = "GSSAPISASLBindRequests")
--
Gitblit v1.10.0