diff options
author | Martin Ritchie <ritchiem@apache.org> | 2010-06-02 16:44:06 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2010-06-02 16:44:06 +0000 |
commit | 013f813ce1f61472e4a074703b439478c6a3cdfb (patch) | |
tree | ad8cdedbb5799d814c778177e23ef028fc08bfad /java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java | |
parent | 60326fb0c67294b09d62a8461bc2ec9880161b85 (diff) | |
download | qpid-python-013f813ce1f61472e4a074703b439478c6a3cdfb.tar.gz |
QPID-2623 : Simple changes to classes that extended TestCase, now they extend InternalBrokerBaseCase.
Fixed up @Override on setUp/tearDowns removed setUp/tearDowns that were simply super calls.
Corrected existing setUp/tearDowns to call super.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java')
-rw-r--r-- | java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java b/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java index f94443228e..431da470e0 100644 --- a/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java +++ b/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java @@ -24,19 +24,16 @@ import java.io.FileWriter; import java.io.IOException; import java.net.InetSocketAddress; -import junit.framework.TestCase; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.XMLConfiguration; -import org.apache.qpid.server.protocol.AMQProtocolEngine; import org.apache.qpid.server.registry.ApplicationRegistry; import org.apache.qpid.server.security.Result; import org.apache.qpid.server.security.access.plugins.Firewall; import org.apache.qpid.server.security.access.plugins.FirewallConfiguration; -import org.apache.qpid.server.virtualhost.VirtualHostRegistry; -import org.apache.qpid.transport.TestNetworkDriver; +import org.apache.qpid.server.util.InternalBrokerBaseCase; -public class FirewallPluginTest extends TestCase +public class FirewallPluginTest extends InternalBrokerBaseCase { public class RuleInfo { @@ -89,12 +86,6 @@ public class FirewallPluginTest extends TestCase ApplicationRegistry.getInstance(); } - public void tearDown() throws Exception - { - // Correctly Close the AR that we created above - ApplicationRegistry.remove(); - super.tearDown(); - } private Firewall initialisePlugin(String defaultAction, RuleInfo[] rules) throws IOException, ConfigurationException { |