Author: clebert.suconic(a)jboss.com
Date: 2011-07-22 17:33:12 -0400 (Fri, 22 Jul 2011)
New Revision: 11035
Modified:
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/twitter/TwitterTest.java
Log:
ignoring tests case there's no properties set
Modified:
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/twitter/TwitterTest.java
===================================================================
---
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/twitter/TwitterTest.java 2011-07-22
14:04:42 UTC (rev 11034)
+++
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/twitter/TwitterTest.java 2011-07-22
21:33:12 UTC (rev 11035)
@@ -18,6 +18,7 @@
import java.util.Set;
import junit.framework.Assert;
+import junit.framework.TestSuite;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.ClientConsumer;
@@ -30,6 +31,7 @@
import org.hornetq.core.config.Configuration;
import org.hornetq.core.config.ConnectorServiceConfiguration;
import org.hornetq.core.config.CoreQueueConfiguration;
+import org.hornetq.core.journal.impl.AIOSequentialFileFactory;
import org.hornetq.core.logging.Logger;
import org.hornetq.core.server.ConnectorService;
import org.hornetq.core.server.HornetQServer;
@@ -75,6 +77,28 @@
// incoming
+
+
+ public static TestSuite suite()
+ {
+ TestSuite suite = new TestSuite(TwitterTest.class.getName() + "
testsuite");
+
+ if (AIOSequentialFileFactory.isSupported())
+ {
+ suite.addTestSuite(TwitterTest.class);
+ }
+ else
+ {
+ // System.out goes towards JUnit report
+ String errorMsg = "Test " + TwitterTest.class.getName() +
+ " ignored as twitter.consumerKey, twitter.consumerSecret,
twitter.accessToken and twitter.accessTokenSecuret is not set in system property * *
*";
+ System.out.println(errorMsg);
+ log.warn(errorMsg);
+ }
+
+ return suite;
+ }
+
public void testSimpleIncoming() throws Exception
{
internalTestIncoming(true,false);
Show replies by date