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 | 8050a664e75e7770856f00204a7e33e89c1ee8ad (patch) | |
| tree | 35d2f3d30673ea48f663632561ce4848cf11cd78 /qpid/java/broker-plugins/firewall/src | |
| parent | 648ac63f23f25c92f2233fd9b13ee04a0c13a8b6 (diff) | |
| download | qpid-python-8050a664e75e7770856f00204a7e33e89c1ee8ad.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@950644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins/firewall/src')
| -rw-r--r-- | qpid/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/qpid/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java b/qpid/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java index f94443228e..431da470e0 100644 --- a/qpid/java/broker-plugins/firewall/src/test/java/org/apache/qpid/server/security/access/FirewallPluginTest.java +++ b/qpid/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 { |
