From: Tomas Olvecky Date: Thu, 3 Jul 2014 09:25:04 +0000 (+0200) Subject: Add GlobalBundleScanningSchemaServiceImpl.destroyInstance for cleanup in tests X-Git-Tag: release/helium~559^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=e7a8b4eec96077e49692b7d7d8612d47aee69221 Add GlobalBundleScanningSchemaServiceImpl.destroyInstance for cleanup in tests Change-Id: Id0f6f65f5a0a00bfb8271cd68700545d1c05e5f6 Signed-off-by: Tomas Olvecky --- diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java index c9402c62ab..60a7e81c4c 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/GlobalBundleScanningSchemaServiceImpl.java @@ -9,6 +9,7 @@ package org.opendaylight.controller.sal.dom.broker; import static com.google.common.base.Preconditions.checkState; +import com.google.common.annotations.VisibleForTesting; import java.net.URL; import java.util.ArrayList; import java.util.Collections; @@ -68,6 +69,11 @@ public class GlobalBundleScanningSchemaServiceImpl implements SchemaContextProvi return instance; } + @VisibleForTesting + public static synchronized void destroyInstance() { + instance = null; + } + public BundleContext getContext() { return context; }