[hornetq-commits] JBoss hornetq SVN: r10982 - branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/replication.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jul 13 11:41:38 EDT 2011


Author: borges
Date: 2011-07-13 11:41:38 -0400 (Wed, 13 Jul 2011)
New Revision: 10982

Modified:
   branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/replication/ReplicationTest.java
Log:
remove obsolete tests

Modified: branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/replication/ReplicationTest.java
===================================================================
--- branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/replication/ReplicationTest.java	2011-07-13 15:36:01 UTC (rev 10981)
+++ branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/replication/ReplicationTest.java	2011-07-13 15:41:38 UTC (rev 10982)
@@ -144,60 +144,12 @@
       waitForComponent(liveServer.getReplicationManager());
    }
 
-   public void testInvalidJournal() throws Exception
-   {
-
-      setupServer(true, false);
-      manager = liveServer.getReplicationManager();
-      waitForComponent(manager);
-
-      try
-      {
-         manager.compareJournals(new JournalLoadInformation[] { new JournalLoadInformation(2, 2),
-                                                               new JournalLoadInformation(2, 2) });
-         Assert.fail("Exception was expected");
-      }
-      catch (HornetQException e)
-      {
-         if (e.getCode() != HornetQException.ILLEGAL_STATE)
-            e.printStackTrace();
-         Assert.assertEquals(HornetQException.ILLEGAL_STATE, e.getCode());
-      }
-
-      manager.compareJournals(new JournalLoadInformation[] { new JournalLoadInformation(), new JournalLoadInformation() });
-
-   }
-
-   // should throw an exception if a second server connects to the same backup
-   public void testInvalidConnection() throws Exception
-   {
-
-      setupServer(true, false);
-
-      manager = liveServer.getReplicationManager();
-      waitForComponent(manager);
-      try
-      {
-         ReplicationManagerImpl manager2 =
-                  new ReplicationManagerImpl(locator.createSessionFactory().getConnection(), factory);
-
-         manager2.start();
-         Assert.fail("Exception was expected");
-      }
-      catch (Exception e)
-      {
-         // expected
-      }
-
-   }
-
    public void testConnectIntoNonBackup() throws Exception
    {
       setupServer(false, false);
 
       try
       {
-
          manager = new ReplicationManagerImpl(locator.createSessionFactory().getConnection(), factory);
          manager.start();
          Assert.fail("Exception was expected");
@@ -438,22 +390,6 @@
       Assert.assertTrue(latch.await(30, TimeUnit.SECONDS));
    }
 
-//   public void testNoServer() throws Exception
-//   {
-//      locator = HornetQClient.createServerLocatorWithoutHA(new TransportConfiguration(INVM_CONNECTOR_FACTORY));
-//
-//      try
-//      {
-//         manager = new ReplicationManagerImpl(locator.createSessionFactory().getConnection(), factory);
-//         manager.start();
-//         Assert.fail("Exception expected");
-//      }
-//      catch (HornetQException expected)
-//      {
-//         Assert.assertEquals(HornetQException.ILLEGAL_STATE, expected.getCode());
-//      }
-//   }
-
    public void testNoActions() throws Exception
    {
 



More information about the hornetq-commits mailing list