[jboss-svn-commits] JBL Code SVN: r7469 - labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 8 10:25:30 EST 2006
Author: kurt.stam at jboss.com
Date: 2006-11-08 10:25:29 -0500 (Wed, 08 Nov 2006)
New Revision: 7469
Modified:
labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/FileGatewayListenerUnitTest.java
labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/JmsGatewayListenerUnitTest.java
Log:
making static
Modified: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/FileGatewayListenerUnitTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/FileGatewayListenerUnitTest.java 2006-11-08 15:17:34 UTC (rev 7468)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/FileGatewayListenerUnitTest.java 2006-11-08 15:25:29 UTC (rev 7469)
@@ -45,7 +45,7 @@
private static final String TMP_DIR = System.getProperty("java.io.tmpdir","/tmp");
- private Logger _logger = Logger.getLogger(this.getClass());
+ private static Logger _logger = Logger.getLogger(FileGatewayListenerUnitTest.class);
static File _gatewayConfig = new File(TMP_DIR,"fileGatewayConfig.xml");
static File _esbListenerConfig = new File(TMP_DIR,"fileEsbListenerConfig.xml");
static File _returnFile = new File(TMP_DIR,"fileMessageBack.txt");
@@ -56,12 +56,12 @@
static String SERVICE_NAME = "testFileGateway";
static String THE_TEXT = "This is the FILE text that will travel around";
- String _appServer = System.getProperty("unit.test.appserver","localhost");
+ static String _appServer = System.getProperty("unit.test.appserver","localhost");
EsbListenerController _esbListController;
GatewayListenerController _gatewayController;
@BeforeClass
- public void setUp() throws Exception
+ public static void setUp() throws Exception
{
_logger.info("Writing temp files to "+TMP_DIR);
writeGatewayConfig();
@@ -74,7 +74,7 @@
}
@AfterClass
- public void tearDown() throws Exception
+ public static void tearDown() throws Exception
{
_gatewayConfig.delete();
_esbListenerConfig.delete();
@@ -115,7 +115,7 @@
} // ___________________________________________________
- private void writeGatewayConfig() throws Exception
+ private static void writeGatewayConfig() throws Exception
{
StringBuilder sb = new StringBuilder()
.append("<FileGateway parameterReloadSecs=\"180\">\n")
@@ -135,7 +135,7 @@
_logger.info("GatewayConfiguration\n"+stringFromFile(_gatewayConfig));
}
- private void writeEsbListenerConfig() throws Exception
+ private static void writeEsbListenerConfig() throws Exception
{
StringBuilder sb = new StringBuilder()
.append("<DummyTester parameterReloadSecs=\"180\">\n")
Modified: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/JmsGatewayListenerUnitTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/JmsGatewayListenerUnitTest.java 2006-11-08 15:17:34 UTC (rev 7468)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/gateway/JmsGatewayListenerUnitTest.java 2006-11-08 15:25:29 UTC (rev 7469)
@@ -55,7 +55,7 @@
private static final String TMP_DIR = System.getProperty("java.io.tmpdir","/tmp");
- private Logger _logger = Logger.getLogger(this.getClass());
+ private static Logger _logger = Logger.getLogger(JmsGatewayListenerUnitTest.class);
static File _gatewayConfig = new File(TMP_DIR,"jmsGatewayConfig.xml");
static File _esbListenerConfig = new File(TMP_DIR,"jmsEsbListenerConfig.xml");
static File _returnFile = new File(TMP_DIR,"jmsMessageBack.txt");
@@ -64,12 +64,12 @@
static String SERVICE_NAME = "testJmsGateway";
static String THE_TEXT = "This is the JMS text that will travel around";
- String _appServer = System.getProperty("unit.test.appserver","localhost");
+ static String _appServer = System.getProperty("unit.test.appserver","localhost");
EsbListenerController _esbListController;
GatewayListenerController _gatewayController;
@BeforeClass
- public void setUp() throws Exception
+ public static void setUp() throws Exception
{
_logger.info("Writing temp files to "+TMP_DIR);
writeGatewayConfig();
@@ -83,7 +83,7 @@
}
@AfterClass
- public void tearDown() throws Exception
+ public static void tearDown() throws Exception
{
_gatewayConfig.delete();
_esbListenerConfig.delete();
@@ -122,7 +122,7 @@
} // ___________________________________________________
- private void writeGatewayConfig() throws Exception
+ private static void writeGatewayConfig() throws Exception
{
StringBuilder sb = new StringBuilder()
.append("<JmsGateway parameterReloadSecs=\"180\">\n")
@@ -144,7 +144,7 @@
_logger.info("GatewayConfiguration\n"+stringFromFile(_gatewayConfig));
}
- private void writeEsbListenerConfig() throws Exception
+ private static void writeEsbListenerConfig() throws Exception
{
StringBuilder sb = new StringBuilder()
.append("<DummyTester parameterReloadSecs=\"180\">\n")
@@ -192,7 +192,7 @@
return out.toString();
}
- private void sendJmsMessage(String text) throws Exception
+ private static void sendJmsMessage(String text) throws Exception
{
ConfigTree tree = ConfigTree.fromInputStream(new FileInputStream(_gatewayConfig))
.getAllChildren()[0];
More information about the jboss-svn-commits
mailing list