From 13bcf29401d5a8dee710c658c386dd227dfb5cb4 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 03 May 2007 19:18:25 +0000
Subject: [PATCH] Fix a number of build warnings that occur when compiling unit tests.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java
index 1169787..61878e8 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java
@@ -32,6 +32,8 @@
import org.opends.server.TestCaseUtils;
import org.opends.server.admin.AdminTestCase;
+import org.opends.server.admin.Configuration;
+import org.opends.server.admin.ConfigurationClient;
import org.opends.server.admin.InstantiableRelationDefinition;
import org.opends.server.admin.ManagedObjectPath;
import org.opends.server.admin.OptionalRelationDefinition;
@@ -73,7 +75,7 @@
@Test
public void testCreateOneToMany() throws Exception {
// First create the path.
- ManagedObjectPath path = ManagedObjectPath.emptyPath();
+ ManagedObjectPath<? extends ConfigurationClient, ? extends Configuration> path = ManagedObjectPath.emptyPath();
InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg> r1 = new InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg>(
RootCfgDefn.getInstance(), "test-parent", "test-parents",
@@ -108,7 +110,7 @@
@Test
public void testCreateOneToOne() throws Exception {
// First create the path.
- ManagedObjectPath path = ManagedObjectPath.emptyPath();
+ ManagedObjectPath<? extends ConfigurationClient, ? extends Configuration> path = ManagedObjectPath.emptyPath();
InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg> r1 = new InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg>(
RootCfgDefn.getInstance(), "test-parent", "test-parents",
@@ -143,7 +145,7 @@
@Test
public void testCreateOneToZeroOrOne() throws Exception {
// First create the path.
- ManagedObjectPath path = ManagedObjectPath.emptyPath();
+ ManagedObjectPath<? extends ConfigurationClient, ? extends Configuration> path = ManagedObjectPath.emptyPath();
InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg> r1 = new InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg>(
RootCfgDefn.getInstance(), "test-parent", "test-parents",
--
Gitblit v1.10.0