Author: gaohoward
Date: 2011-11-25 03:29:12 -0500 (Fri, 25 Nov 2011)
New Revision: 11763
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java
Log:
exclude tests from running in Windows as the tests tries to create filenames with tab
characters which is not valid for Windows
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java 2011-11-24
19:42:20 UTC (rev 11762)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java 2011-11-25
08:29:12 UTC (rev 11763)
@@ -48,13 +48,19 @@
public void testStartStop1WithWhitespace() throws Exception
{
testStartStop1("fdm test file.xml");
- testStartStop1("fdm\ttest\tfile.xml");
+ if (!isWindows())
+ {
+ testStartStop1("fdm\ttest\tfile.xml");
+ }
}
public void testStartStop2WithWhitespace() throws Exception
{
testStartStop2("fdm test file.xml");
- testStartStop2("fdm\ttest\tfile.xml");
+ if (!isWindows())
+ {
+ testStartStop2("fdm\ttest\tfile.xml");
+ }
}
private void testStartStop1(final String filename) throws Exception
@@ -67,6 +73,8 @@
FileDeploymentManagerTest.log.debug(file.getAbsoluteFile());
+ System.out.println("========file name: " + file.getAbsolutePath());
+
file.createNewFile();
FakeDeployer deployer = new FakeDeployer(filename);
Modified: branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java
===================================================================
--- branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java 2011-11-24
19:42:20 UTC (rev 11762)
+++ branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java 2011-11-25
08:29:12 UTC (rev 11763)
@@ -138,6 +138,13 @@
checkThread = false;
}
+ private String osType = System.getProperty("os.name").toLowerCase();
+
+ protected boolean isWindows()
+ {
+ return (osType.indexOf("win") >= 0);
+ }
+
// Static --------------------------------------------------------
protected Configuration createDefaultConfig()
Show replies by date