activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/3] activemq-artemis git commit: remove now invalid tests
Date Tue, 12 Jan 2016 00:45:54 GMT
remove now invalid tests

Since we are removing the finalize cleanup these tests are now invalid


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d9ac06a9
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d9ac06a9
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d9ac06a9

Branch: refs/heads/master
Commit: d9ac06a9074b218387f6c4de7fab4e1d0b81f600
Parents: 945963e
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Mon Jan 11 19:41:21 2016 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Jan 11 19:43:31 2016 -0500

----------------------------------------------------------------------
 .../client/SessionCloseOnGCTest.java            | 48 --------------------
 1 file changed, 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d9ac06a9/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
index 3f25a47..2f97e32 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
@@ -176,52 +176,4 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
       locator = null;
       ActiveMQTestBase.checkWeakReferences(fref);
    }
-
-   @Test
-   public void testCloseOneSessionOnGC() throws Exception {
-      ClientSessionFactoryImpl sf = (ClientSessionFactoryImpl) locator.createSessionFactory();
-
-      {
-         ClientSession session = sf.createSession(false, true, true);
-
-         Assert.assertEquals(1, server.getRemotingService().getConnections().size());
-      }
-
-      for (int i = 0; i < 1000 && sf.numSessions() != 0; i++) {
-         forceGC();
-      }
-
-      Assert.assertEquals(0, sf.numSessions());
-      Assert.assertEquals(1, sf.numConnections());
-      Assert.assertEquals(1, server.getRemotingService().getConnections().size());
-   }
-
-   @Test
-   public void testCloseSeveralSessionOnGC() throws Exception {
-      ClientSessionFactoryImpl sf = (ClientSessionFactoryImpl) locator.createSessionFactory();
-
-      ClientSession session1 = sf.createSession(false, true, true);
-      ClientSession session2 = sf.createSession(false, true, true);
-      ClientSession session3 = sf.createSession(false, true, true);
-
-      Assert.assertEquals(1, server.getRemotingService().getConnections().size());
-
-      WeakReference<ClientSession> ref1 = new WeakReference<>(session1);
-      WeakReference<ClientSession> ref2 = new WeakReference<>(session2);
-      WeakReference<ClientSession> ref3 = new WeakReference<>(session3);
-
-      session1 = null;
-      session2 = null;
-      session3 = null;
-
-      ActiveMQTestBase.checkWeakReferences(ref1, ref2, ref3);
-
-      for (int i = 0; i < 1000 && sf.numSessions() != 0; i++) {
-         forceGC();
-      }
-      Assert.assertEquals("# sessions", 0, sf.numSessions());
-      Assert.assertEquals("# connections", 1, sf.numConnections());
-      Assert.assertEquals("# connections in remoting service", 1, server.getRemotingService().getConnections().size());
-   }
-
 }


Mime
View raw message