From 8faafb3aa1bfe6bfdf60518c8e3a3efe0b1bc833 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.
---
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/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java
index 1169787..61878e8 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java
+++ b/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