From b9af8f181b7495cb343c280db4ce8979a04bfc91 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 12 Sep 2006 23:12:27 +0000
Subject: [PATCH] This commit changes several aspects of the unit test infrastructure:
---
opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java
index 068d6f1..4127ce3 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java
@@ -28,6 +28,7 @@
package org.opends.server;
/**
+ *
* A fixture factory that guarantees that at most only one instance of a
* fixture is instantiated. The singleton factory uses reference
* counting to guarantee that the fixture instance is torn down at the
@@ -51,6 +52,7 @@
* @param pimpl
* The underlying fixture factory.
*/
+ //@Deprecated
public SingletonFixtureFactory(FixtureFactory<T> pimpl) {
this.pimpl = pimpl;
this.instance = null;
@@ -60,6 +62,7 @@
/**
* {@inheritDoc}
*/
+ @Deprecated
public T setUp() throws Exception {
if (refCount == 0) {
instance = pimpl.setUp();
@@ -72,6 +75,7 @@
/**
* {@inheritDoc}
*/
+ @Deprecated
public void tearDown() throws Exception {
if (refCount <= 0) {
throw new IllegalStateException("SingletonFixtureFactory tearDown "
--
Gitblit v1.10.0